Add Flatpak image build

This commit is contained in:
Christian Basler
2025-07-24 22:04:23 +02:00
parent 1527ab0cb0
commit 4dc87e5f5b
8 changed files with 290 additions and 2 deletions

16
flatpak/build.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
cd "$(dirname "$(readlink -f "$0")")/.." || error "Failed to switch to correct directory"
./gradlew packageReleaseUberJarForCurrentOS
flatpak-builder --ccache --force-clean --repo=flatpak/_repo ./flatpak/_build ./flatpak/ch.dissem.YAEP.yml
if [ "$1" = "bundle" ] || [ "$1" = "install" ]; then
echo "Build is done, creating bundle now. This may take a while..."
flatpak build-bundle flatpak/_repo "flatpak/YAEP-$(arch)-1.0.0.flatpak" ch.dissem.YAEP
fi
if [ "$1" = "install" ]; then
flatpak install "flatpak/YAEP-$(arch)-1.0.0.flatpak"
fi