2023-09-26 07:20:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This is building the bundle RetroDECK.flatpak after the download and build steps are done
|
|
|
|
|
2023-12-20 09:06:21 +00:00
|
|
|
if [ $PERSISTENCE==true ]; then
|
|
|
|
mkdir -p "$HOME/cooker-persistent"
|
|
|
|
GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE"
|
|
|
|
GITHUB_WORKSPACE="$HOME/cooker-persistent"
|
|
|
|
fi
|
|
|
|
|
2023-11-16 11:29:09 +00:00
|
|
|
if [ "${GITHUB_REF##*/}" = "main" ]; then
|
2023-11-30 16:04:21 +00:00
|
|
|
flatpak build-bundle ${GITHUB_WORKSPACE}/.local RetroDECK.flatpak net.retrodeck.retrodeck
|
2023-09-30 09:02:35 +00:00
|
|
|
else
|
2023-11-30 16:04:21 +00:00
|
|
|
flatpak build-bundle ${GITHUB_WORKSPACE}/.local RetroDECK-cooker.flatpak net.retrodeck.retrodeck
|
2023-12-20 09:06:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $PERSISTENCE==true ]; then
|
|
|
|
GITHUB_WORKSPACE="$GITHUB_WORKSPACE_BACKUP"
|
2023-11-16 11:29:09 +00:00
|
|
|
fi
|