diff --git a/.gitignore b/.gitignore index cab2398..5658c63 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,9 @@ download/ theme.json test.json Spitfire -Spitfire.zip \ No newline at end of file +Spitfire.zip +appimagetool-x86_64.AppImage +linuxdeploy-x86_64.AppImage +.dist/ +Spitfire_Launcher-x86_64.AppImage +/Spitfire-Launcher.AppDir/usr/bin/main \ No newline at end of file diff --git a/Spitfire-Launcher.AppDir/.DirIcon b/Spitfire-Launcher.AppDir/.DirIcon new file mode 120000 index 0000000..4d4e0ec --- /dev/null +++ b/Spitfire-Launcher.AppDir/.DirIcon @@ -0,0 +1 @@ +logo256.png \ No newline at end of file diff --git a/Spitfire-Launcher.AppDir/AppRun b/Spitfire-Launcher.AppDir/AppRun new file mode 100755 index 0000000..f38ba84 --- /dev/null +++ b/Spitfire-Launcher.AppDir/AppRun @@ -0,0 +1,5 @@ +#!/bin/bash +SELF=$(readlink -f "$0") +HERE=${SELF%/*} +EXEC="${HERE}/usr/bin/main" +exec "${EXEC}" \ No newline at end of file diff --git a/Spitfire-Launcher.AppDir/Spitfire-Launcher.desktop b/Spitfire-Launcher.AppDir/Spitfire-Launcher.desktop new file mode 100755 index 0000000..09d1640 --- /dev/null +++ b/Spitfire-Launcher.AppDir/Spitfire-Launcher.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Spitfire Launcher +Exec=main +Icon=logo256 +Type=Application +Categories=Utility diff --git a/Spitfire-Launcher.AppDir/assets/logo.png b/Spitfire-Launcher.AppDir/assets/logo.png new file mode 100644 index 0000000..7471946 Binary files /dev/null and b/Spitfire-Launcher.AppDir/assets/logo.png differ diff --git a/Spitfire-Launcher.AppDir/logo256.png b/Spitfire-Launcher.AppDir/logo256.png new file mode 100644 index 0000000..92d0dbf Binary files /dev/null and b/Spitfire-Launcher.AppDir/logo256.png differ diff --git a/assets/icon.svg b/assets/icon.svg new file mode 100644 index 0000000..d7ddbf4 --- /dev/null +++ b/assets/icon.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/logo256.png b/assets/logo256.png new file mode 100644 index 0000000..92d0dbf Binary files /dev/null and b/assets/logo256.png differ diff --git a/build-appimage.sh b/build-appimage.sh new file mode 100755 index 0000000..34f4610 --- /dev/null +++ b/build-appimage.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Compile to binary if its not already build +BINARY_PATH="./build/main.bin" +if [ ! -f "$BINARY_PATH" ]; then + ./build.sh + cp "./build/main.bin" "./Spitfire-Launcher.AppDir/usr/bin/main" +fi + +# Download and set up appimagetool only if it's not already present +APPIMAGETOOL="./appimagetool-x86_64.AppImage" +if [ ! -f "$APPIMAGETOOL" ]; then + wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O "$APPIMAGETOOL" + chmod +x "$APPIMAGETOOL" +fi + +# Create the AppImage +ARCH=x86_64 "$APPIMAGETOOL" ./Spitfire-Launcher/Spitfire-Launcher.AppDir \ No newline at end of file