18 lines
No EOL
610 B
Bash
Executable file
18 lines
No EOL
610 B
Bash
Executable file
#!/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 |