diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-10-23 16:58:49 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-10-23 16:58:49 +0800 |
| commit | 885d1c77ac036bf2807c6a49a0cb49db5091a492 (patch) | |
| tree | 08db84e0fbe681f708800118f4a3988cee96f9af /build_files/build.sh | |
| parent | 5725363f633c31a0f96e70f1400fba4958a4356c (diff) | |
| parent | fca1daca7dbe218dde1240b6c406a4257c70bd05 (diff) | |
| download | AeroCore-OS-885d1c77ac036bf2807c6a49a0cb49db5091a492.tar.gz AeroCore-OS-885d1c77ac036bf2807c6a49a0cb49db5091a492.zip | |
Merge testing changes before news trigger44.20261023
Diffstat (limited to 'build_files/build.sh')
| -rwxr-xr-x | build_files/build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build_files/build.sh b/build_files/build.sh index 40b9efd..94a5ef5 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -14,6 +14,25 @@ esac # Copy the contents of system_files/ of the git repo to / cp -avf "/ctx/system_files"/. / +# Keep Bazzite's game mode news hook unchanged; select the matching feed branch. +NEWS_HOOK_CONFIG=/etc/gamemode-news-hook.conf +if [[ ! -f "${NEWS_HOOK_CONFIG}" ]]; then + echo "Unable to locate game mode news hook config: ${NEWS_HOOK_CONFIG}" >&2 + exit 1 +fi +NEWS_BRANCH="${IMAGE_BRANCH:-stable}" +case "${NEWS_BRANCH}" in + testing|unstable) ;; + *) NEWS_BRANCH=stable ;; +esac +NEWS_FEED_URL="https://git.mirror.aerocore.com.cn/AeroCore-IO/aerocore-os-gamemode-news/plain/announcements.json?h=${NEWS_BRANCH}" +sed -i \ + "s|^github = .*|github = ${NEWS_FEED_URL}|" \ + "${NEWS_HOOK_CONFIG}" +grep -Fxq \ + "github = ${NEWS_FEED_URL}" \ + "${NEWS_HOOK_CONFIG}" + # Bazzite's Kinoite/Plasma desktop shortcut used to start a privileged # return-to-gamemode.service. Current Bazzite invokes the user-session entry # point directly; keep the shortcut correct when the base image still ships @@ -157,3 +176,4 @@ find /etc/environment.d /etc/skel/.config/environment.d -name 99-aerocore-mirror /ctx/install-instruments.sh /ctx/patch-bazzite-deck-identity.sh /ctx/patch-bazzite-rollback-helper.sh +/ctx/patch-bazzite-os-branch-select.sh |
