RetroDECK/automation_tools/flatpak_build_bundle.sh
Gorian b4c057170d
Update flatpak_build_bundle.sh
Bash should always use double brackets, not single. Also, moved to using a variable rather than the same command multiple times - this pattern helps to reduce errors in the future
2023-10-14 12:14:00 -07:00

12 lines
321 B
Bash
Executable file

#!/bin/bash
# This is building the bundle RetroDECK.flatpak after the download and build steps are done
if [[ "${GITHUB_REF##*/}" == "main" ]]; then
flatpak = "RetroDECK.flatpak"
else
flatpak = "RetroDECK-cooker.flatpak"
fi
flatpak build-bundle "${GITHUB_WORKSPACE}/local" "${flatpak}" net.retrodeck.retrodeck