2022-07-05 21:10:14 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
|
|
|
|
chmod a+x linuxdeploy*.AppImage
|
2022-07-18 19:21:47 -04:00
|
|
|
curl -sSfL https://github.com$(curl https://github.com/probonopd/go-appimage/releases | grep "mkappimage-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) -o mkappimage.AppImage
|
|
|
|
chmod a+x mkappimage.AppImage
|
2022-07-05 21:10:14 -04:00
|
|
|
|
|
|
|
mkdir -p AppDir/usr/bin
|
2022-08-02 10:22:20 -04:00
|
|
|
cp scripts/linux/{soh.desktop,soh.sh} AppDir/
|
2022-07-06 18:47:08 -04:00
|
|
|
cp soh/macosx/sohIcon.png AppDir/soh.png
|
2022-07-05 21:10:14 -04:00
|
|
|
curl -sSfL https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt -o AppDir/usr/bin/gamecontrollerdb.txt
|
|
|
|
|
|
|
|
mkdir -p AppDir/usr/share/applications
|
|
|
|
mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps
|
|
|
|
mkdir -p AppDir/usr/lib
|
|
|
|
|
|
|
|
mv AppDir/soh.sh AppDir/usr/bin
|
|
|
|
cp -r build/* AppDir/usr/bin
|
|
|
|
|
|
|
|
chmod +x AppDir/usr/bin/{soh.elf,OTRGui,soh.sh}
|
|
|
|
|
|
|
|
cd AppDir && ln -s ./usr/bin/soh.sh ./AppRun && cd ..
|
|
|
|
|
2022-07-06 18:47:08 -04:00
|
|
|
export UPD_INFO="gh-releases-zsync|HarbourMasters|Shipwright-linux|develop|SOH-Linux.AppImage.zsync"
|
2022-07-05 21:10:14 -04:00
|
|
|
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run \
|
|
|
|
--appdir=./AppDir/ \
|
|
|
|
-d ./AppDir/soh.desktop \
|
|
|
|
-i ./AppDir/soh.png \
|
2022-07-06 18:47:08 -04:00
|
|
|
-e ./AppDir/usr/bin/soh.elf
|
|
|
|
|
2022-07-05 21:10:14 -04:00
|
|
|
cd /soh
|
|
|
|
|
2022-07-18 19:21:47 -04:00
|
|
|
VERSION=Linux ./mkappimage.AppImage --appimage-extract-and-run ./AppDir # "SOH-Linux-x86_64.AppImage"
|
|
|
|
mv SOH-Linux-x86_64.AppImage SOH-Linux.AppImage # Keep Original Name
|