-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
40 lines (33 loc) · 1.2 KB
/
make-appimage.sh
File metadata and controls
40 lines (33 loc) · 1.2 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
36
37
38
39
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q blender | awk '{print $2; exit}') # example command to get version of application here
VERSION=${VERSION#*:}
export ARCH VERSION
export OUTPATH=./dist
export ADD_HOOKS="self-updater.bg.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON=/usr/share/icons/hicolor/scalable/apps/blender.svg
export DESKTOP=/usr/share/applications/blender.desktop
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
export DEPLOY_PYTHON=1
export DEPLOY_SDL=1
export OPTIMIZE_LAUNCH=1
# Deploy dependencies
quick-sharun \
/usr/bin/blender* \
/usr/share/blender \
/usr/lib/libssl.so* \
/usr/lib/libcblas.so* \
/usr/lib/liblapack.so* \
/usr/lib/libopenblas.so* \
/usr/lib/libquadmath.so* \
/opt/intel/oneapi/tcm/*/lib/libtcm.so*
# blender needs the files of its share directory relative to it
ln -sr ./AppDir/share/blender/* ./AppDir/bin
# 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