-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
38 lines (31 loc) · 1.25 KB
/
make-appimage.sh
File metadata and controls
38 lines (31 loc) · 1.25 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q defold-bin | awk '{print $2; exit}') # example command to get version of application here
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/128x128/apps/defold.png
export DESKTOP=/usr/share/applications/Defold.desktop
export DEPLOY_OPENGL=1
# Deploy dependencies
mkdir -p ./AppDir/bin
cp -r /opt/Defold/* ./AppDir/bin
# this nonsense is needed, otherwise ldd cannot find libraries
# how does this application work at all??? running ldd on the /opt also shows missing libs
(
cd ./AppDir/bin/packages/jdk*/lib
find ./*/* -type f -name '*.so' -exec ln -s {} ./ \; || :
)
quick-sharun ./AppDir/bin/* ./AppDir/bin/packages/jdk*/bin/* ./AppDir/bin/packages/jdk*/lib/*
# we also have to do this again after deployment
(
cd ./AppDir/shared/lib
find ../../bin/packages/ -type f -name '*.so*' -exec ln -s {} ./ \; || :
)
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the app for 12 seconds, if the test fails due to the app
# having issues running in the CI use --simple-test instead
quick-sharun --simple-test ./dist/*.AppImage