2023-09-26 07:20:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-09-30 09:02:35 +00:00
|
|
|
# This script is downloading the needed files to prepare the manifest build
|
2023-09-26 07:20:19 +00:00
|
|
|
|
|
|
|
git config --global protocol.file.allow always
|
2023-09-30 09:02:35 +00:00
|
|
|
|
|
|
|
if [ "${GITHUB_REF##*/}" = "main" ]; then
|
|
|
|
BUNDLE_NAME="RetroDECK.flatpak"
|
2023-09-30 12:09:01 +00:00
|
|
|
FOLDER=retrodeck-flatpak-main
|
2023-09-30 09:02:35 +00:00
|
|
|
else
|
|
|
|
BUNDLE_NAME="RetroDECK-cooker.flatpak"
|
|
|
|
FOLDER=retrodeck-flatpak-cooker
|
|
|
|
fi
|
|
|
|
|
2023-09-26 07:20:19 +00:00
|
|
|
mkdir -vp ${GITHUB_WORKSPACE}/local
|
2023-09-30 12:09:01 +00:00
|
|
|
mkdir -vp ${GITHUB_WORKSPACE}/"$FOLDER"
|
2023-09-30 09:02:35 +00:00
|
|
|
|
2023-09-26 07:20:19 +00:00
|
|
|
flatpak-builder --user --force-clean \
|
|
|
|
--install-deps-from=flathub \
|
|
|
|
--install-deps-from=flathub-beta \
|
|
|
|
--repo=${GITHUB_WORKSPACE}/local \
|
|
|
|
--disable-download \
|
2023-09-30 09:02:35 +00:00
|
|
|
${GITHUB_WORKSPACE}/"$FOLDER" \
|
|
|
|
net.retrodeck.retrodeck.yml
|