RetroDECK/automation_tools/flatpak_build_only.sh

34 lines
963 B
Bash
Raw Normal View History

#!/bin/bash
# This script is downloading the needed files to prepare the manifest build
git config 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
2024-07-12 08:02:56 +00:00
mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-repo
2023-12-21 12:43:35 +00:00
mkdir -vp ${GITHUB_WORKSPACE}/"$FOLDER"
2023-12-20 10:17:22 +00:00
# Pass the args to Flatpak Builder
FLATPAK_BUILD_EXTRA_ARGS="${@}"
echo "Passing additional args to flatpak builder: $FLATPAK_BUILD_EXTRA_ARGS"
command="flatpak-builder --user --force-clean $FLATPAK_BUILD_EXTRA_ARGS \
--install-deps-from=flathub \
--install-deps-from=flathub-beta \
2024-07-12 08:02:56 +00:00
--repo=${GITHUB_WORKSPACE}/retrodeck-repo \
--disable-download \
\"${GITHUB_WORKSPACE}/$FOLDER\" \
net.retrodeck.retrodeck.yml"
# Echo the command for verification
echo -e "Executing command:\n$command"
# Execute the command
eval $command