added "build-appimage.sh"

This commit is contained in:
admin 2024-02-24 14:04:22 +01:00
parent c2a01e95f1
commit 08e56e23d9
9 changed files with 50 additions and 1 deletions

5
.gitignore vendored
View file

@ -25,3 +25,8 @@ theme.json
test.json test.json
Spitfire Spitfire
Spitfire.zip Spitfire.zip
appimagetool-x86_64.AppImage
linuxdeploy-x86_64.AppImage
.dist/
Spitfire_Launcher-x86_64.AppImage
/Spitfire-Launcher.AppDir/usr/bin/main

View file

@ -0,0 +1 @@
logo256.png

View file

@ -0,0 +1,5 @@
#!/bin/bash
SELF=$(readlink -f "$0")
HERE=${SELF%/*}
EXEC="${HERE}/usr/bin/main"
exec "${EXEC}"

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Spitfire Launcher
Exec=main
Icon=logo256
Type=Application
Categories=Utility

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

14
assets/icon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

BIN
assets/logo256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

18
build-appimage.sh Executable file
View file

@ -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