Skip to content

Commit fb3e46f

Browse files
committed
AppImage CI: reenable signing
1 parent 6ebeec3 commit fb3e46f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
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+
## base64-encoded .tar.gz of pubkey.asc+privkey.asc.enc
9+
## openssl-encrypted private key with:
10+
## `openssl aes-256-cbc -pass pass:dummy -in privkey.asc -out privkey.asc.enc -a -md sha256`
711
## @returns name of created AppImage
812

913
APPDIR=UltraGrid.AppDir
@@ -158,7 +162,8 @@ fi
158162

159163
GIT_ROOT=$(git rev-parse --show-toplevel || true)
160164
if [ -n "${appimage_key-}" ] && [ -n "${GIT_ROOT-}" ]; then
161-
echo "$appimage_key" >> "$GIT_ROOT/pubkey.asc"
165+
echo "$appimage_key" | base64 -d | tar -C "$GIT_ROOT" -xzaf -
166+
export super_secret_password=dummy
162167
fi
163168

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

0 commit comments

Comments
 (0)