snes9x/gtk/scripts/makeappimage.sh

22 lines
698 B
Bash
Raw Normal View History

2023-03-28 19:41:15 +02:00
#!/usr/bin/env bash
2023-03-28 18:05:54 +02:00
if [ ! -f appimagetool-x86_64.AppImage ]; then
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
fi
if [ ! -f linuxdeploy-x86_64.AppImage ]; then
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
fi
DESTDIR=AppDir ninja install
2023-03-28 19:41:15 +02:00
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir=AppDir
2023-03-28 18:05:54 +02:00
rm AppDir/snes9x.png
pushd AppDir
ln -s usr/share/icons/hicolor/256x256/apps/snes9x.png
chmod +x AppRun
popd
2023-03-28 19:41:15 +02:00
./appimagetool-x86_64.AppImage --appimage-extract-and-run AppDir