forked from garglk/garglk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgargoyle-appimage.sh
executable file
·43 lines (36 loc) · 1.38 KB
/
gargoyle-appimage.sh
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
40
41
42
43
#!/bin/bash
set -ex
# https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
# https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-x86_64.AppImage
# https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
frankendrift="OFF"
while getopts "f" o
do
case "${o}" in
f)
frankendrift="ON"
;;
*)
fatal "Usage: $0 [-f]"
;;
esac
done
mkdir build-appimage
cd build-appimage
xargs -n 1 -P 0 wget -q <<EOF
https://github.com/garglk/assets/raw/appimage/linuxdeploy-x86_64.AppImage
https://github.com/garglk/assets/raw/appimage/linuxdeploy-plugin-appimage-x86_64.AppImage
https://github.com/garglk/assets/raw/appimage/linuxdeploy-plugin-qt-x86_64.AppImage
EOF
chmod +x linuxdeploy*
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DAPPIMAGE=TRUE -DBUILD_SHARED_LIBS=OFF -DWITH_FRANKENDRIFT="${frankendrift}"
make "-j$(nproc)"
make install DESTDIR=AppDir
export QMAKE=qmake6
OUTPUT=../Gargoyle-x86_64.AppImage ./linuxdeploy-x86_64.AppImage \
--appdir=AppDir \
--plugin qt \
--icon-file=../garglk/gargoyle-house.png \
--icon-filename=io.github.garglk.Gargoyle \
-d ../garglk/gargoyle.desktop \
--output=appimage