-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
29 lines (23 loc) · 1016 Bytes
/
make-appimage.sh
File metadata and controls
29 lines (23 loc) · 1016 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
25
26
27
28
29
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q nfs2se-git | awk '{print $2; exit}') # example command to get version of application here
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/32x32/apps/nfs2se.png
export DESKTOP=/usr/share/applications/nfs2se.desktop
export STARTUPWMCLASS=ld-linux.so.2
export DEPLOY_OPENGL=1
export DEPLOY_PULSE=1
export LIB_DIR=/usr/lib32
# Deploy dependencies
quick-sharun /opt/nfs2se/nfs2se
# Additional changes can be done in between here
echo 'ANYLINUX_DO_NOT_LOAD_LIBS=libpipewire-0.3.so*:${ANYLINUX_DO_NOT_LOAD_LIBS}' >> ./AppDir/.env
# 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 --simple-test ./dist/*.AppImage