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

18 lines
610 B
Bash
Raw Permalink Normal View History

2024-02-24 13:04:22 +00:00
#!/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