Use local file to sign

The aab isn't public yet when signing
This commit is contained in:
sim 2025-11-06 22:15:34 +01:00
parent 88fb54ca03
commit 75539155fa

View file

@ -1,10 +1,6 @@
#!/bin/bash -e
[ $# -ne 1 ] && echo "Usage: $0 {version}" && exit 1
VERSION="$1"
[ -f "$VERSION.aab" ] || curl -o "$VERSION.aab" --follow "https://codeberg.org/Sunup/android/releases/download/$VERSION/sunup.aab"
[ $# -ne 1 ] || [ ! -f $1 ] && echo "Usage: $0 {version.aab}" && exit 1
pass ls | grep sunup.key >/dev/null
if [ $? -ne 0 ]; then
@ -15,7 +11,7 @@ fi
export KS="$HOME/.password-store/keystore/sunup.jks"
export KS_PASS=$(pass keystore/sunup.key)
export KEY_ALIAS="sunup"
export AAB="$VERSION.aab"
export AAB="$1"
echo "[+] Pass copied"