mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Add GPG signing to processRelease
This commit is contained in:
parent
f48dd5f84c
commit
900183743d
4 changed files with 32 additions and 10 deletions
|
@ -245,6 +245,16 @@ processRelease() {
|
|||
|
||||
sed -i "s|$OUT_DIR/||" $OUT_DIR/*.md5sum $OUT_DIR/*.sha512sum;
|
||||
|
||||
#GPG signing
|
||||
if [ "$DOS_GPG_SIGNING" = true ]; then
|
||||
for checksum in $OUT_DIR/*.sha512sum; do
|
||||
gpg --homedir "$DOS_SIGNING_GPG" --sign --local-user "$DOS_GPG_SIGNING_KEY" --clearsign "$checksum";
|
||||
if [ "$?" -eq "0" ]; then
|
||||
mv -f "$checksum.asc" "$checksum";
|
||||
fi;
|
||||
done;
|
||||
fi;
|
||||
|
||||
#Copy to archive
|
||||
if [ "$DOS_AUTO_ARCHIVE_BUILDS" = true ]; then
|
||||
echo -e "\e[0;32mCopying files to archive\e[0m";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue