This repository has been archived on 2024-06-15. You can view files and clone it, but cannot push or open issues or pull requests.
Launcher/build-appimage.sh
2024-02-24 14:04:22 +01:00

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