-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
32 lines (28 loc) · 1.09 KB
/
make-appimage.sh
File metadata and controls
32 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
set -eu
# Setup
ARCH=$(uname -m)
export ARCH
export OUTPATH=./dist
export ADD_HOOKS="self-updater.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON=/usr/share/icons/hicolor/scalable/apps/com.gitlab.guillermop.MasterKey.svg
export DESKTOP=/usr/share/applications/com.gitlab.guillermop.MasterKey.desktop
export PATH_MAPPING='/usr/share/master-key:${SHARUN_DIR}/share/master-key'
export DEPLOY_PYTHON=1
export STARTUPWMCLASS=com.gitlab.guillermop.MasterKey # Default to Wayland's wmclass. For X11, GTK_CLASS_FIX will force the wmclass to be the Wayland one.
export GTK_CLASS_FIX=1
export ALWAYS_SOFTWARE=1
# Deploy dependencies
quick-sharun \
/usr/bin/master-key \
/usr/share/master-key \
/usr/lib/libpwquality.so* \
/usr/lib/libtcl8.6.so* \
/usr/lib/libsqlcipher.so* \
/usr/lib/libgtk-4.so*
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the app for 12 seconds, if the test fails due to the app
# having issues running in the CI use --simple-test instead
quick-sharun --test ./dist/*.AppImage