diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-07-22 08:40:43 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-07-22 08:40:43 +0800 |
| commit | fc07365cdc27a2e78a57cdf673fa19a99d7cf57f (patch) | |
| tree | 84bdbb1a7f218b39753a32dbefb8858b12d06c23 /build_files/build.sh | |
| parent | 04b8dcbbc3d5707f488c9b67ba96ce88ccd15181 (diff) | |
| download | AeroCore-OS-fc07365cdc27a2e78a57cdf673fa19a99d7cf57f.tar.gz AeroCore-OS-fc07365cdc27a2e78a57cdf673fa19a99d7cf57f.zip | |
Constrain builds to bazzite-deck
Keep the live installer Fedora version aligned with the deck base image and fail early if BASE_IMAGE is overridden to a non-deck variant.
Diffstat (limited to 'build_files/build.sh')
| -rwxr-xr-x | build_files/build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build_files/build.sh b/build_files/build.sh index 3d37e31..03adff0 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -2,6 +2,15 @@ set -ouex pipefail +case "${BASE_IMAGE:-}" in + ghcr.io/ublue-os/bazzite-deck:* | ghcr.io/ublue-os/bazzite-deck@*) + ;; + *) + echo "AeroCore OS only supports bazzite-deck BASE_IMAGE values for HTPC game-mode builds: ${BASE_IMAGE:-<unset>}" >&2 + exit 1 + ;; +esac + # Copy the contents of system_files/ of the git repo to / cp -avf "/ctx/system_files"/. / |
