-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
35 lines (26 loc) · 1.04 KB
/
make-appimage.sh
File metadata and controls
35 lines (26 loc) · 1.04 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
34
35
#!/bin/sh
set -eu
ARCH=$(uname -m)
export ARCH
export OUTPATH=./dist
export ADD_HOOKS="self-updater.bg.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
export DEPLOY_SDL=1
# Deploy dependencies
quick-sharun ./AppDir/bin/*
# The flatpak build hardcodes /var/data as the game location
# which is a read only by default and useless for us
sed -i -e 's|/var/data|/tmp/._Ur|g' ./AppDir/shared/bin/UnleashedRecomp
echo '#!/bin/false
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/UnleashedRecomp
mkdir -p "$datadir"
ln -sfn "$datadir" /tmp/._Ur' > ./AppDir/bin/fix-flatpak-path.src.hook
# 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
# in this case since there is no gpu available we have to install vulkan-swrast
pacman -S --noconfirm vulkan-swrast
quick-sharun --test ./dist/*.AppImage