-
Notifications
You must be signed in to change notification settings - Fork 2
/
appimage-x86_64.sh
executable file
·46 lines (38 loc) · 1.16 KB
/
appimage-x86_64.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
44
45
#!/bin/sh
# Configured for Ubuntu 16.04 LTS (x86_64)
NAME="Glorious Glacier Grotto"
PROJ="gggrotto"
ARCH="x86_64"
DATA="data"
DEPS="\
/usr/local/lib/libSDL2.so \
/usr/local/lib/libSDL2_gfx.so \
/usr/local/lib/libSDL2_image.so \
/usr/local/lib/libSDL2_mixer.so \
/usr/local/lib/libSDL2_ttf.so \
/lib/$ARCH-linux-gnu/libpng16.so.16 \
/usr/lib/$ARCH-linux-gnu/libogg.so.0 \
/usr/lib/$ARCH-linux-gnu/libsndio.so.6.1 \
/usr/lib/$ARCH-linux-gnu/libvorbis.so.0 \
/usr/lib/$ARCH-linux-gnu/libvorbisfile.so.3"
rm -rf "$PROJ.AppDir"
mkdir -p "$PROJ.AppDir/usr/bin"
mkdir -p "$PROJ.AppDir/usr/lib"
cp "$PROJ" "$PROJ.AppDir/usr/bin"
cp "$DATA/$PROJ".png "$PROJ.AppDir"
cp -R "$DATA" "$PROJ.AppDir/usr"
cd "$PROJ.AppDir"
cp $DEPS usr/lib
strip usr/bin/* usr/lib/*
echo "[Desktop Entry]
Type=Application
Name=$NAME
Exec=$PROJ
Categories=Game;
Icon=$PROJ" > "$PROJ.desktop"
wget -O AppRun https://github.com/probonopd/AppImageKit/releases/download/10/AppRun-x86_64
chmod +x AppRun
cd ..
wget -N https://github.com/probonopd/AppImageKit/releases/download/10/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage "$PROJ.AppDir" "$PROJ-$ARCH.AppImage"