-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmkappimage.sh
executable file
·37 lines (30 loc) · 1.13 KB
/
mkappimage.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
#! /bin/bash
if [ x"${GTK_VERSION}" = "x" ]; then
export GTK_VERSION=2
fi
if [ x"${GTK_VERSION}" = "x3" ]; then
bash /sources/build-appimage-gtk3.sh || exit 1
else
bash /sources/build-appimage.sh || exit 1
fi
export APPROOT=/work/appimage
# copy hook scripts
(mkdir -p "${APPROOT}/scripts" && \
cp -a /sources/scripts/gimp.sh "${APPROOT}/scripts" && \
cp -a /sources/appimage-helper-scripts/bundle-gtk2.sh "${APPROOT}/scripts" &&
cp -a /sources/appimage-helper-scripts/bundle-gobject-introspection.sh "${APPROOT}/scripts") || exit 1
if [ x"${GTK_VERSION}" = "x3" ]; then
cp -a /sources/appimage-helper-scripts/bundle-python3.sh "${APPROOT}/scripts" || exit 1
else
cp -a /sources/appimage-helper-scripts/bundle-python.sh "${APPROOT}/scripts" || exit 1
fi
bash /sources/package-appimage.sh || exit 1
exit 0
if [ x"${GTK_VERSION}" = "x4" ]; then
# fill and package the AppImage bundle
bash /sources/package-appimage.sh || exit 1
exit 0
fi
(mkdir -p "${APPROOT}/scripts" && cp -a /sources/scripts/gmic.sh "${APPROOT}/scripts") || exit 1
bash /sources/build-appimage-plugins.sh || exit 1
bash /sources/package-appimage.sh "-withplugins" || exit 1