-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
29 lines (24 loc) · 846 Bytes
/
make-appimage.sh
File metadata and controls
29 lines (24 loc) · 846 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 mesa | awk '{print $2; exit}') # example command to get version of application here
VERSION=${VERSION#*:}
export ARCH VERSION
export OUTPATH=./dist
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON="https://gitlab.freedesktop.org/mesa/mesa/-/raw/main/docs/favicon.svg"
export DESKTOP=DUMMY
export APPNAME=MESA
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
export MAIN_BIN=env
export ANYLINUX_LIB=0 # we want our env to leak into the child here
# Deploy dependencies
quick-sharun /usr/bin/vkcube /usr/bin/glxgears /usr/bin/env
rm -f \
./AppDir/bin/vkcube \
./AppDir/bin/glxgears \
./AppDir/bin/xdg-open
# Additional changes can be done in between here
# Turn AppDir into AppImage
quick-sharun --make-appimage