added "build-appimage.sh"
This commit is contained in:
parent
c2a01e95f1
commit
08e56e23d9
9 changed files with 50 additions and 1 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -24,4 +24,9 @@ download/
|
|||
theme.json
|
||||
test.json
|
||||
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
|
1
Spitfire-Launcher.AppDir/.DirIcon
Symbolic link
1
Spitfire-Launcher.AppDir/.DirIcon
Symbolic link
|
@ -0,0 +1 @@
|
|||
logo256.png
|
5
Spitfire-Launcher.AppDir/AppRun
Executable file
5
Spitfire-Launcher.AppDir/AppRun
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SELF=$(readlink -f "$0")
|
||||
HERE=${SELF%/*}
|
||||
EXEC="${HERE}/usr/bin/main"
|
||||
exec "${EXEC}"
|
6
Spitfire-Launcher.AppDir/Spitfire-Launcher.desktop
Executable file
6
Spitfire-Launcher.AppDir/Spitfire-Launcher.desktop
Executable file
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Spitfire Launcher
|
||||
Exec=main
|
||||
Icon=logo256
|
||||
Type=Application
|
||||
Categories=Utility
|
BIN
Spitfire-Launcher.AppDir/assets/logo.png
Normal file
BIN
Spitfire-Launcher.AppDir/assets/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
BIN
Spitfire-Launcher.AppDir/logo256.png
Normal file
BIN
Spitfire-Launcher.AppDir/logo256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
14
assets/icon.svg
Normal file
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
BIN
assets/logo256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
18
build-appimage.sh
Executable file
18
build-appimage.sh
Executable 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
|
Reference in a new issue