-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
24 lines (19 loc) · 909 Bytes
/
make-appimage.sh
File metadata and controls
24 lines (19 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q keypunch-git | awk '{print $2; exit}')
export ARCH VERSION
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/dev.bragefuglseth.Keypunch.Devel.svg
export DESKTOP=/usr/share/applications/dev.bragefuglseth.Keypunch.Devel.desktop
export STARTUPWMCLASS=dev.bragefuglseth.Keypunch.Devel # 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 # force only software, hardware accel is not really needed for this simple app
# Deploy dependencies
quick-sharun /usr/bin/keypunch
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the final app
quick-sharun --test ./dist/*.AppImage