From 084b68d109fe9a1210eebcf17919a26ce04ff064 Mon Sep 17 00:00:00 2001 From: Rick Peters Date: Fri, 2 Oct 2026 08:33:43 +0200 Subject: [PATCH] feat: steamify.nodownload (kernel command line) or STEAMIFY_NO_DOWNLOAD keeps the ISO's own Steamify instead of the newest release --- archiso/airootfs/usr/local/bin/calamares-online.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/archiso/airootfs/usr/local/bin/calamares-online.sh b/archiso/airootfs/usr/local/bin/calamares-online.sh index 6709e37..b863287 100755 --- a/archiso/airootfs/usr/local/bin/calamares-online.sh +++ b/archiso/airootfs/usr/local/bin/calamares-online.sh @@ -69,14 +69,18 @@ EOF # any, so "$sdir" would still be empty in the same one. local sdir=/usr/local/share/steamify local sbin="$sdir/steamify.sh" sqml="$sdir/qml" + # STEAMIFY_NO_DOWNLOAD=1 or `steamify.nodownload` on the kernel command line: keep the ISO's own + # copy, e.g. to test an unreleased Steamify (the newest release would replace it). + local nodl= + if [[ -n "${STEAMIFY_NO_DOWNLOAD:-}" ]] || grep -qw steamify.nodownload /proc/cmdline; then nodl=1; fi local tmp; tmp="$(mktemp)" - if curl -fsSL --max-time 20 https://github.com/theupriser/steamify-cachyos/releases/latest/download/steamify.sh -o "$tmp" && + if [[ -z "$nodl" ]] && curl -fsSL --max-time 20 https://github.com/theupriser/steamify-cachyos/releases/latest/download/steamify.sh -o "$tmp" && grep -q -- '--defaults' "$tmp"; then sudo install -Dm755 "$tmp" "$sbin" fi rm -f "$tmp" tmp="$(mktemp -d)" - if curl -fsSL --max-time 20 https://github.com/theupriser/steamify-cachyos/releases/latest/download/steamify-app.tar.gz | + if [[ -z "$nodl" ]] && curl -fsSL --max-time 20 https://github.com/theupriser/steamify-cachyos/releases/latest/download/steamify-app.tar.gz | tar -xz -C "$tmp" --strip-components=2 ui/qml/Theme.qml ui/qml/Texts.qml 2>/dev/null; then sudo cp "$tmp/Theme.qml" "$tmp/Texts.qml" "$sqml/" fi