From 18a21db83c56de1510245b4f9a36ef5c0ab9617f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 20 Dec 2023 10:43:00 +0100 Subject: [PATCH] WORKFLOW: fixing persistent build --- automation_tools/flatpak_build_only.sh | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/automation_tools/flatpak_build_only.sh b/automation_tools/flatpak_build_only.sh index 29959c99..b4f61bc5 100755 --- a/automation_tools/flatpak_build_only.sh +++ b/automation_tools/flatpak_build_only.sh @@ -16,19 +16,28 @@ if [ $PERSISTENCE==true ]; then mkdir -p "$HOME/cooker-persistent" GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE" GITHUB_WORKSPACE="$HOME/cooker-persistent" -fi -mkdir -vp ${GITHUB_WORKSPACE}/.local -mkdir -vp ${GITHUB_WORKSPACE}/"$FOLDER" - -flatpak-builder --user --force-clean \ + flatpak-builder --user --force-clean \ --install-deps-from=flathub \ --install-deps-from=flathub-beta \ --repo=${GITHUB_WORKSPACE}/.local \ --disable-download \ - ${GITHUB_WORKSPACE}/"$FOLDER" \ + ${GITHUB_WORKSPACE_BACKUP}/"$FOLDER" \ net.retrodeck.retrodeck.yml -if [ $PERSISTENCE==true ]; then GITHUB_WORKSPACE="$GITHUB_WORKSPACE_BACKUP" -fi + +else + + mkdir -vp ${GITHUB_WORKSPACE}/.local + mkdir -vp ${GITHUB_WORKSPACE}/"$FOLDER" + + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/.local \ + --disable-download \ + ${GITHUB_WORKSPACE}/"$FOLDER" \ + net.retrodeck.retrodeck.yml + +fi \ No newline at end of file