mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
feat: steamify.nodownload (kernel command line) or STEAMIFY_NO_DOWNLOAD keeps the ISO's own Steamify instead of the newest release
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
7ee32f926b
commit
084b68d109
1 file changed
+6
-2
@@ -69,14 +69,18 @@ EOF
|
|||||||
# any, so "$sdir" would still be empty in the same one.
|
# any, so "$sdir" would still be empty in the same one.
|
||||||
local sdir=/usr/local/share/steamify
|
local sdir=/usr/local/share/steamify
|
||||||
local sbin="$sdir/steamify.sh" sqml="$sdir/qml"
|
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)"
|
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
|
grep -q -- '--defaults' "$tmp"; then
|
||||||
sudo install -Dm755 "$tmp" "$sbin"
|
sudo install -Dm755 "$tmp" "$sbin"
|
||||||
fi
|
fi
|
||||||
rm -f "$tmp"
|
rm -f "$tmp"
|
||||||
tmp="$(mktemp -d)"
|
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
|
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/"
|
sudo cp "$tmp/Theme.qml" "$tmp/Texts.qml" "$sqml/"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user