mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 00:55:42 +00:00
19 lines
604 B
Bash
Executable file
19 lines
604 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This is building the bundle RetroDECK.flatpak after the download and build steps are done
|
|
|
|
if [ $PERSISTENCE==true ]; then
|
|
mkdir -p "$HOME/cooker-persistent"
|
|
GITHUB_WORKSPACE_BACKUP="$GITHUB_WORKSPACE"
|
|
GITHUB_WORKSPACE="$HOME/cooker-persistent"
|
|
fi
|
|
|
|
if [ "${GITHUB_REF##*/}" = "main" ]; then
|
|
flatpak build-bundle ${GITHUB_WORKSPACE}/.local RetroDECK.flatpak net.retrodeck.retrodeck
|
|
else
|
|
flatpak build-bundle ${GITHUB_WORKSPACE}/.local RetroDECK-cooker.flatpak net.retrodeck.retrodeck
|
|
fi
|
|
|
|
if [ $PERSISTENCE==true ]; then
|
|
GITHUB_WORKSPACE="$GITHUB_WORKSPACE_BACKUP"
|
|
fi |