-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
33 lines (27 loc) · 1.17 KB
/
make-appimage.sh
File metadata and controls
33 lines (27 loc) · 1.17 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
33
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q rmg | awk '{print $2; exit}') # example command to get version of application here
export ARCH VERSION
export OUTPATH=./dist
export APPNAME=RMG
export ADD_HOOKS="self-updater.bg.hook:x86-64-v3-check.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON=/usr/share/icons/hicolor/scalable/apps/com.github.Rosalie241.RMG.svg
export DESKTOP=/usr/share/applications/com.github.Rosalie241.RMG.desktop
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
# libRMG-Core.so is hardcoded to /usr/lib/RMG but the library does not contain
# the string '/usr/lib/RMG', it contains '/usr/libL' instead with a capital L
export PATH_MAPPING='
/usr/share/RMG:${SHARUN_DIR}/share/RMG
/usr/lib/RMG:${SHARUN_DIR}/lib/RMG
'
# Deploy dependencies
quick-sharun /usr/bin/RMG /usr/lib/RMG
# Additional changes can be done in between here
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the app for 12 seconds, if the app normally quits before that time
# then skip this or check if some flag can be passed that makes it stay open
quick-sharun --test ./dist/*.AppImage