mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
18 lines
565 B
Bash
Executable file
18 lines
565 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
|
|
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 |