Skip to content

Commit 9a6f079

Browse files
committed
AppImage CI: reenable signing
Adapted to the new (proposed) way of signing: <probonopd/go-appimage#318>. It is possible that it this is not final implementation in the go-appimage.
1 parent 6ebeec3 commit 9a6f079

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

data/scripts/Linux-AppImage/create-appimage.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
##
55
## @param $1 (optional) zsync URL - location used for AppImage updater
66
## @env $appimage_key (optional) signing key
7+
## (new method, see https://github.com/probonopd/go-appimage/issues/318)
8+
## \n
9+
## Contains base64-encoded .tar.gz of pubkey.asc+privkey.asc.enc files
10+
## containing exported GPG public and private (encrypted) key.
11+
## \n
12+
## Private key is encrypted by OpenSSL (see appimagetool.go source):
13+
## `openssl aes-256-cbc -pass pass:dummy -in privkey.asc -out privkey.asc.enc -a -md sha256`
714
## @returns name of created AppImage
815

916
APPDIR=UltraGrid.AppDir
@@ -158,7 +165,8 @@ fi
158165

159166
GIT_ROOT=$(git rev-parse --show-toplevel || true)
160167
if [ -n "${appimage_key-}" ] && [ -n "${GIT_ROOT-}" ]; then
161-
echo "$appimage_key" >> "$GIT_ROOT/pubkey.asc"
168+
echo "$appimage_key" | base64 -d | tar -C "$GIT_ROOT" -xzaf -
169+
export super_secret_password=dummy
162170
fi
163171

164172
mkappimage=$(command -v ./mkappimage || command -v mkappimage-x86_64.AppImage || command -v mkappimage || true)

0 commit comments

Comments
 (0)