mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-14 16:49:13 +00:00
AppImage CI: reenable signing
Adapted to the new (proposed) way of signing: <https://github.com/probonopd/go-appimage/issues/318>. It is possible that it this is not final implementation in the go-appimage.
This commit is contained in:
@@ -4,6 +4,13 @@
|
||||
##
|
||||
## @param $1 (optional) zsync URL - location used for AppImage updater
|
||||
## @env $appimage_key (optional) signing key
|
||||
## (new method, see https://github.com/probonopd/go-appimage/issues/318)
|
||||
## \n
|
||||
## Contains base64-encoded .tar.gz of pubkey.asc+privkey.asc.enc files
|
||||
## containing exported GPG public and private (encrypted) key.
|
||||
## \n
|
||||
## Private key is encrypted by OpenSSL (see appimagetool.go source):
|
||||
## `openssl aes-256-cbc -pass pass:dummy -in privkey.asc -out privkey.asc.enc -a -md sha256`
|
||||
## @returns name of created AppImage
|
||||
|
||||
APPDIR=UltraGrid.AppDir
|
||||
@@ -158,7 +165,8 @@ fi
|
||||
|
||||
GIT_ROOT=$(git rev-parse --show-toplevel || true)
|
||||
if [ -n "${appimage_key-}" ] && [ -n "${GIT_ROOT-}" ]; then
|
||||
echo "$appimage_key" >> "$GIT_ROOT/pubkey.asc"
|
||||
echo "$appimage_key" | base64 -d | tar -C "$GIT_ROOT" -xzaf -
|
||||
export super_secret_password=dummy
|
||||
fi
|
||||
|
||||
mkappimage=$(command -v ./mkappimage || command -v mkappimage-x86_64.AppImage || command -v mkappimage || true)
|
||||
|
||||
Reference in New Issue
Block a user