diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-01-22 00:42:42 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-02-03 11:53:35 +0800 |
| commit | f5b06e10aa0515f12df4f88004fe8ed031c58d3a (patch) | |
| tree | e70b1d78ec72443907517e1e666eebcbf81ccc76 /user_install_script.sh | |
| download | decky-installer-f5b06e10aa0515f12df4f88004fe8ed031c58d3a.tar.gz decky-installer-f5b06e10aa0515f12df4f88004fe8ed031c58d3a.zip | |
feat: introduce Decky Installer mirror files
Add initial setup for the mirrored Decky Installer. Includes the
install script, desktop file, and GitHub release workflow. The
script modifies the official installer to use a custom mirror host.
Diffstat (limited to 'user_install_script.sh')
| -rw-r--r-- | user_install_script.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/user_install_script.sh b/user_install_script.sh new file mode 100644 index 0000000..689c9fc --- /dev/null +++ b/user_install_script.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Hardcoded mirror host for GitHub/API/RAW substitutions +DECKY_MIRROR_HOST="__DECKY_MIRROR_HOST__" + +# Download the official installer script, rewrite domains to the mirror, then execute. +# This keeps the original installer logic intact while swapping network endpoints. +tmp_script="/tmp/decky_user_install_script.sh" + +if ! curl -fsSL "https://${DECKY_MIRROR_HOST}/SteamDeckHomebrew/decky-installer/releases/latest/download/user_install_script.sh" \ + | sed -E \ + -e "s#github\.com#${DECKY_MIRROR_HOST}#g" \ + -e "s#api\.github\.com#api.${DECKY_MIRROR_HOST}#g" \ + -e "s#raw\.githubusercontent\.com/([^/]+)/([^/]+)/([^/]+)/#${DECKY_MIRROR_HOST}/\1/\2/plain/#g" \ + > "${tmp_script}"; then + echo "Failed to download or rewrite the official installer script." >&2 + exit 1 +fi + +bash "${tmp_script}" |
