From 4d14b05d819181fa803df94b3bab081169dc490d Mon Sep 17 00:00:00 2001 From: richblack Date: Tue, 21 Jul 2026 01:38:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(1.16.0):=20update/install=20=E4=BE=86?= =?UTF-8?q?=E6=BA=90=E6=94=B9=E6=8C=87=20Gitea=EF=BC=88GitHub=20uncle6me-w?= =?UTF-8?q?eb=20=E5=B7=B2=20suspend=EF=BC=9D=E8=87=AA=E5=8B=95=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=A9=E5=B0=B1=E6=AD=BB=E4=BA=86=EF=BC=89=EF=BC=8B?= =?UTF-8?q?=E8=A3=9C=20system-dev/VERSION=20=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 發現:所有下游 repo 的 update.sh 都指向已被 suspend 的 GitHub 帳號 raw.githubusercontent.com/uncle6me-web/… → 一律「取不到遠端版本」而中止。 去 GitHub 化時漏掉這條,等於整套自動更新機制靜默失效。 改指 git.uncle6.me/Leo/system-dev-template/raw/branch/main(實測 200)。 另:版本真相源有兩份(template/.claude/VERSION 與 template/system-dev/VERSION), update.sh 讀的是後者但 1.15.0 只更新了前者 → 補齊,並列為之後要收斂的雙檔同步債。 Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/install.sh | 6 +++--- scripts/update.sh | 2 +- template/system-dev/VERSION | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 100c6bd..c4db133 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -26,9 +26,9 @@ t() { if [ "$IS_ZH" = "yes" ]; then printf '%s\n' "$1"; else printf '%s\n' "$2"; # tn = 不換行版(給 prompt 用) tn() { if [ "$IS_ZH" = "yes" ]; then printf '%s' "$1"; else printf '%s' "$2"; fi; } -REPO_URL="https://raw.githubusercontent.com/uncle6me-web/system-dev-template/main/template" +REPO_URL="https://git.uncle6.me/Leo/system-dev-template/raw/branch/main/template" # install.sh / update.sh 住在 main/scripts/(不在 template/)。 -SCRIPTS_URL="https://raw.githubusercontent.com/uncle6me-web/system-dev-template/main/scripts" +SCRIPTS_URL="https://git.uncle6.me/Leo/system-dev-template/raw/branch/main/scripts" CREATED=() SKIPPED=() @@ -115,7 +115,7 @@ if [ -d "system-dev" ] || [ -d ".claude/wiki" ] || [ -f ".claude/VERSION" ]; the t " 後續的更新、遷移、補新檔,一律由「更新腳本」處理(不要重跑 install):" \ " All updates, migrations, and new-file additions are handled by the UPDATER (don't re-run install):" echo "" - echo " curl -sSL https://raw.githubusercontent.com/uncle6me-web/system-dev-template/main/scripts/update.sh | bash" + echo " curl -sSL https://git.uncle6.me/Leo/system-dev-template/raw/branch/main/scripts/update.sh | bash" echo "" t " (重跑 install 可能建出空白範本、跟你的真資料並存,故在此停止。)" \ " (Re-running install could create empty templates alongside your real data, so it stops here.)" diff --git a/scripts/update.sh b/scripts/update.sh index 62268a7..823ab46 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -23,7 +23,7 @@ esac t() { if [ "$IS_ZH" = "yes" ]; then printf '%s\n' "$1"; else printf '%s\n' "$2"; fi; } tn() { if [ "$IS_ZH" = "yes" ]; then printf '%s' "$1"; else printf '%s' "$2"; fi; } -REPO_RAW="https://raw.githubusercontent.com/uncle6me-web/system-dev-template/main" +REPO_RAW="https://git.uncle6.me/Leo/system-dev-template/raw/branch/main" TEMPLATE_URL="$REPO_RAW/template" UPDATED=() diff --git a/template/system-dev/VERSION b/template/system-dev/VERSION index 141f2e8..15b989e 100644 --- a/template/system-dev/VERSION +++ b/template/system-dev/VERSION @@ -1 +1 @@ -1.15.0 +1.16.0