diff --git a/gemini/ugemini_install.sh b/gemini/ugemini_install.sh index 1ff15f3..d5056cd 100755 --- a/gemini/ugemini_install.sh +++ b/gemini/ugemini_install.sh @@ -137,11 +137,8 @@ cleanup() { rm -rf "$INSTALL_DIR" 2>/dev/null || true; } trap cleanup EXIT info "Downloading patcher..." -CURL_AUTH="" -[ -n "$GITEA_TOKEN" ] && CURL_AUTH="-H \"Authorization: token ${GITEA_TOKEN}\"" - -curl -fsSL "$REPO_RAW/gemini_patcher.py" -o "$INSTALL_DIR/gemini_patcher.py" -curl -fsSL "$REPO_RAW/gemini_config.json" -o "$INSTALL_DIR/gemini_config.json" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/gemini_patcher.py" -o "$INSTALL_DIR/gemini_patcher.py" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/gemini_config.json" -o "$INSTALL_DIR/gemini_config.json" log "Patcher downloaded" info "Applying patches..." diff --git a/gemini/ugemini_update.sh b/gemini/ugemini_update.sh index 67ef32f..a199257 100644 --- a/gemini/ugemini_update.sh +++ b/gemini/ugemini_update.sh @@ -64,8 +64,9 @@ cleanup() { rm -rf "$TEMP_DIR" 2>/dev/null || true; } trap cleanup EXIT info "Downloading patcher..." -curl -fsSL "$REPO_RAW/gemini_patcher.py" -o "$TEMP_DIR/gemini_patcher.py" -curl -fsSL "$REPO_RAW/gemini_config.json" -o "$TEMP_DIR/gemini_config.json" +GITEA_TOKEN="${GITEA_TOKEN:-cadffcb0a6a3be728ac1ff619bb40c86588f6837}" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/gemini_patcher.py" -o "$TEMP_DIR/gemini_patcher.py" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/gemini_config.json" -o "$TEMP_DIR/gemini_config.json" info "Applying patches..." python3 "$TEMP_DIR/gemini_patcher.py" --apply --config "$TEMP_DIR/gemini_config.json" diff --git a/qwen/uqwen_install.sh b/qwen/uqwen_install.sh index 933d713..374d488 100755 --- a/qwen/uqwen_install.sh +++ b/qwen/uqwen_install.sh @@ -152,8 +152,8 @@ cleanup() { rm -rf "$INSTALL_DIR" 2>/dev/null || true; } trap cleanup EXIT info "Downloading patcher..." -curl -fsSL "$REPO_RAW/qwen_patcher.py" -o "$INSTALL_DIR/qwen_patcher.py" -curl -fsSL "$REPO_RAW/qwen_config.json" -o "$INSTALL_DIR/qwen_config.json" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/qwen_patcher.py" -o "$INSTALL_DIR/qwen_patcher.py" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/qwen_config.json" -o "$INSTALL_DIR/qwen_config.json" log "Patcher downloaded" info "Applying patches (settings + env)..." diff --git a/qwen/uqwen_update.sh b/qwen/uqwen_update.sh index f63c65a..2b138c8 100644 --- a/qwen/uqwen_update.sh +++ b/qwen/uqwen_update.sh @@ -79,8 +79,9 @@ cleanup() { rm -rf "$TEMP_DIR" 2>/dev/null || true; } trap cleanup EXIT info "Downloading patcher..." -curl -fsSL "$REPO_RAW/qwen_patcher.py" -o "$TEMP_DIR/qwen_patcher.py" -curl -fsSL "$REPO_RAW/qwen_config.json" -o "$TEMP_DIR/qwen_config.json" +GITEA_TOKEN="${GITEA_TOKEN:-cadffcb0a6a3be728ac1ff619bb40c86588f6837}" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/qwen_patcher.py" -o "$TEMP_DIR/qwen_patcher.py" +curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/qwen_config.json" -o "$TEMP_DIR/qwen_config.json" info "Applying patches..." python3 "$TEMP_DIR/qwen_patcher.py" --settings-only --config "$TEMP_DIR/qwen_config.json"