RetroDECK/automation_tools/flatpak_build_only.sh

35 lines
915 B
Bash
Raw Normal View History

#!/bin/bash
# This script is downloading the needed files to prepare the manifest build
git config --global protocol.file.allow always
if [ "${GITHUB_REF##*/}" = "main" ]; then
BUNDLE_NAME="RetroDECK.flatpak"
2023-09-30 12:09:01 +00:00
FOLDER=retrodeck-flatpak-main
else
BUNDLE_NAME="RetroDECK-cooker.flatpak"
FOLDER=retrodeck-flatpak-cooker
fi
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
2023-09-30 12:09:01 +00:00
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
if [ $PERSISTENCE==true ]; then
GITHUB_WORKSPACE="$GITHUB_WORKSPACE_BACKUP"
fi