-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
appimage-build.sh
118 lines (118 loc) · 8.02 KB
/
appimage-build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
if (ls supersonic);
then
mkdir -p Supersonic.AppDir/usr/lib
mkdir Supersonic.AppDir/usr/bin
cp /usr/lib/x86_64-linux-gnu/libpostproc.so.57 Supersonic.AppDir/usr/lib
cp /usr/lib/x86_64-linux-gnu/libsrt-gnutls.so.1.5 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libx264.so.164 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libcodec2.so.1.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libdav1d.so.7 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libvpx.so.9 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libmfx.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libavdevice.so.60 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libswresample.so.4 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libavfilter.so.9 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libswscale.so.7 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libavformat.so.60 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libavutil.so.58 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libavcodec.so.60 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libuchardet.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsixel.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/liblua5.2.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libplacebo.so.338 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libmujs.so.3 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libcdio_cdda.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libcdio_paranoia.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libmpv.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libjpeg.so.8 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libass.so.9 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libdvdnav.so.4 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libbluray.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/librubberband.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libzimg.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libjack.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libXpresent.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libva-drm.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libva-wayland.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libva-x11.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libvdpau.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libunibreak.so.5 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libzvbi.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsnappy.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libgsm.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libjxl.so.0.7 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/librav1e.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libshine.so.3 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libSvtAv1Enc.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libx265.so.199 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libxvidcore.so.4 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libvpl.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libpocketsphinx.so.3 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libbs2b.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/liblilv-0.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libmysofa.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_cmu_us_awb.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libvidstab.so.1.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libzmq.so.5 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libgme.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libopenmpt.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libchromaprint.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/librabbitmq.so.4 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/librist.so.4 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libssh-gcrypt.so.4 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsoxr.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libopenal.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libdc1394.so.25 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libva.so.2 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libjxl_threads.so.0.7 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsphinxbase.so.3 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_cmu_us_kal.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_cmu_us_rms.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_cmu_us_slt.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libdvdread.so.8 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libudfread.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libserd-0.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsord-0.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsratom-0.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libpgm-5.3.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libnorm.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libmbedcrypto.so.7 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libcjson.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsndio.so.7 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_cmu_us_kal16.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libhwy.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libblas.so.3 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/liblapack.so.3 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libzix-0.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_usenglish.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libflite_cmulex.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libgfortran.so.5 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libbz2.so.1.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libdb-5.3.so Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libsodium.so.23 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libcaca.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libXss.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libncursesw.so.6 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libtinfo.so.6 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libnuma.so.1 Supersonic.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libavc1394.so.0 Supersonic.AppDir/usr/lib/
cp /usr/lib64/ld-linux-x86-64.so.2 Supersonic.AppDir/usr/lib
printf '%s\n' '#!/bin/bash' 'SELF=$(readlink -f "$0")' 'HERE=${SELF%/*}' 'EXEC="${HERE}/usr/bin/supersonic"' 'export LD_LIBRARY_PATH="/usr/lib:${HERE}/usr/lib"' 'exec "${EXEC}";' > Supersonic.AppDir/AppRun
printf '%s\n' '[Desktop Entry]' 'Name=Supersonic' 'Exec=supersonic' 'Icon=ico' 'Type=Application' 'Comment=A lightweight cross-platform desktop client for self-hosted music servers' 'Categories=AudioVideo;' > Supersonic.AppDir/"supersonic.desktop"
chmod +x Supersonic.AppDir/AppRun
chmod +x Supersonic.AppDir/supersonic.desktop
wget https://github.com/dweymouth/supersonic/blob/main/res/appicon.png?raw=true -O Supersonic.AppDir/ico.png
cp supersonic Supersonic.AppDir/usr/bin/
chmod +x Supersonic.AppDir/usr/bin/supersonic
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage Supersonic.AppDir/
echo "Script finished"
else
echo "executable not found!"
fi