summaryrefslogtreecommitdiff
path: root/user_install_script.sh
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-02-03 11:51:06 +0800
committertranch <tranch.xiao@gmail.com>2026-02-03 11:53:43 +0800
commitcb30744a40cfd3c817c681035a108a8c201ee5f4 (patch)
tree6220faf1682d615961874c52d60136547d7b7726 /user_install_script.sh
parentf5b06e10aa0515f12df4f88004fe8ed031c58d3a (diff)
downloaddecky-installer-cb30744a40cfd3c817c681035a108a8c201ee5f4.tar.gz
decky-installer-cb30744a40cfd3c817c681035a108a8c201ee5f4.zip
feat: add plugin installer and mock server
Add decky_plugin_installer.py and a Decky mock server for validation, plus related workflow/test updates.
Diffstat (limited to 'user_install_script.sh')
-rw-r--r--user_install_script.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/user_install_script.sh b/user_install_script.sh
index 689c9fc..d9c2773 100644
--- a/user_install_script.sh
+++ b/user_install_script.sh
@@ -3,6 +3,8 @@ set -euo pipefail
# Hardcoded mirror host for GitHub/API/RAW substitutions
DECKY_MIRROR_HOST="__DECKY_MIRROR_HOST__"
+DECKY_PLUGIN_MIRROR_HOST="__DECKY_PLUGIN_MIRROR_HOST__"
+DECKY_PLUGIN_TARGET_ID="__DECKY_PLUGIN_ID__"
# Download the official installer script, rewrite domains to the mirror, then execute.
# This keeps the original installer logic intact while swapping network endpoints.
@@ -19,3 +21,14 @@ if ! curl -fsSL "https://${DECKY_MIRROR_HOST}/SteamDeckHomebrew/decky-installer/
fi
bash "${tmp_script}"
+
+# Download and run decky plugin installer helper (mirror-hosted).
+plugin_installer="/tmp/decky_plugin_installer.py"
+if curl -fsSL "https://${DECKY_MIRROR_HOST}/AeroCore-IO/decky-installer/releases/latest/download/decky_plugin_installer.py" -o "${plugin_installer}"; then
+ python3 "${plugin_installer}" \
+ --store-url "https://${DECKY_PLUGIN_MIRROR_HOST}/plugins" \
+ --target-id "${DECKY_PLUGIN_TARGET_ID}"
+else
+ echo "Failed to download decky installer helper script." >&2
+ exit 1
+fi