diff options
author | cyBerta <cyberta@riseup.net> | 2021-01-31 23:12:51 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-01-31 23:12:51 +0100 |
commit | d3383d8bfe25f8a83473a41501a442cd1d319b86 (patch) | |
tree | 2ce6afb68ad046fea9cd82b7fd9c64b218a9b73d | |
parent | f81840aac1136c54432ace2fbb97e2a4622f28bd (diff) |
fix gpg signing for -u flag
-rwxr-xr-x | scripts/prepareForDistribution.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/prepareForDistribution.sh b/scripts/prepareForDistribution.sh index 2caea029..efb08c35 100755 --- a/scripts/prepareForDistribution.sh +++ b/scripts/prepareForDistribution.sh @@ -77,12 +77,9 @@ function sign { then echo -e "${GREEN} -> gpg sign using key ${GPG_KEY}${NC}" gpg --default-key ${GPG_KEY} --armor --output "${FINAL_APK}.sig" --detach-sign ${FINAL_APK} || quit - #gpg -u ${GPG_KEY} -sab --output ${FINAL_APK} || quit else - echo -e "${GREEN} -> gpg sign using pub key of user ${GPG_KEY_USER}${NC}" - GPG_KEY=$(gpg --list-keys $GPG_KEY_USER | grep pub | cut -d '/' -f 2 | cut -d ' ' -f 1) || quit - #gpg -u ${GPG_KEY} -sab --output ${FINAL_APK} || quit - gpg --default-key ${GPG_KEY} --armor --output "${FINAL_APK}.sig" --detach-sign ${FINAL_APK} || quit + echo -e "${GREEN} -> gpg sign using key of user ${GPG_KEY_USER}${NC}" + gpg -u ${GPG_KEY_USER} --armor --output "${FINAL_APK}.sig" --detach-sign ${FINAL_APK} || quit fi echo -e "${GREEN} -> gpg verify ${FINAL_APK}${NC}" |