From 55b6973e8ed18a13e6f3066943615c43ac4d72a3 Mon Sep 17 00:00:00 2001 From: moxiaonian Date: Fri, 9 Oct 2026 21:34:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E7=BA=BF=E8=BF=9C=E7=AB=AF=EF=BC=9Ash?= =?UTF-8?q?are=20=E6=95=B0=E6=8D=AE=E4=BB=93=E4=B8=8E=E8=87=AA=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20Gitea=20=E9=95=9C=E5=83=8F=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - manifest.json | 6 +++--- scripts/self_update.py | 5 ++--- share/config.json | 6 +++--- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 1788bb0..015fddc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ __pycache__/ *.pyc .pytest_cache/ .venv/ -.license.json diff --git a/manifest.json b/manifest.json index adb7ffa..97dba99 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "files": { - ".gitignore": "56100520d4c482622c8e8f5abb3822815e73e0926028e0859105d5acef556961", + ".gitignore": "1e4671dee2d3123a45609ed82a4329531e0d41bf1b6895ab169ecd8813cfb8f5", "LICENSE.md": "6b839540e0fd4ab75530ec31fc5c3cbc3c2d5de5fe85068ef1c0901e54be9315", "README.md": "1e11e5d19856fbd9bb15068c74e184617a10b2e0b18c7e42d9b617cd0d8f534a", "SKILL.md": "8b493ae2236b5941c88e282d4793126487e4d81a6f3c24976020fb26e50cf67a", @@ -583,11 +583,11 @@ "scripts/query_shensha.py": "1d77205c8781676f3536bbeb2f36d397b825ff3065a4b968344fb95e5b8859dd", "scripts/render/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "scripts/render/markdown.py": "4b2bcc3fc6581728d74bbaa357bf1db2e8aec1d3ec54c2c27ca645b6c5179977", - "scripts/self_update.py": "b80789b81be67e063100ddbf64763836263cc2068b4642b23170e56c47ad8bce", + "scripts/self_update.py": "95dc0302ca2b78d71b2893ebaced7e233dbc00944a5e3c5b06081b5c9a749f8a", "scripts/share_export.py": "21396143ad5cc2d244c7cc060a3ece25702594465689a9f12438dfe92de3296f", "scripts/share_push.py": "8a367a3a4aa1bad27fbf3e9b241ebf69bf687a134045a06842e06047b58458ae", "share/README.md": "42ebed92285752af93c7c7af5eb4b6e84ed836408d0cedb57e1b32c796746b26", - "share/config.json": "c91e88dd0f166c975e173d9d1d609113da6d986adb16711e242da12e87b07a29", + "share/config.json": "22a5615dd7db5aa688e1ed8e464874c70d90d21e6aa126e214b9c7896b99c7cd", "tests/golden/history_tz.yaml": "3fb74e90c4f53abebaac0a5de8825ac3794fc0b5b41dc84121201e70cecade47", "tests/golden/longitudes.yaml": "6fda1e6b632d29c135362c9273b931c4416c9f24c31b07e2a7baadc6e2077bc2", "tests/golden/time_boundary.yaml": "637090a1c081b9b824fc0073d29dad073d29138c3b48082bdf41ce77f5af3b37", diff --git a/scripts/self_update.py b/scripts/self_update.py index d9575e0..399fc98 100644 --- a/scripts/self_update.py +++ b/scripts/self_update.py @@ -29,9 +29,8 @@ from pathlib import Path # ---- 远端配置(GitHub 优先,Gitea 兜底)---- GITHUB_VERSION_URL = "https://raw.githubusercontent.com/mxiaonian/ZiPingEightChar/main/VERSION" GITHUB_ZIPBALL_URL = "https://codeload.github.com/mxiaonian/ZiPingEightChar/zip/refs/heads/main" -# Gitea 占位地址:由授权方填写实际自建 Gitea 地址后启用 -GITEA_VERSION_URL = "https://gitea.example.com/owner/ZiPingEightChar/raw/branch/main/VERSION" -GITEA_ZIPBALL_URL = "https://gitea.example.com/owner/ZiPingEightChar/archive/main.zip" +GITEA_VERSION_URL = "https://git.lingyaomiaojie.com/moxiaonian/ZiPingEightChar/raw/branch/main/VERSION" +GITEA_ZIPBALL_URL = "https://git.lingyaomiaojie.com/moxiaonian/ZiPingEightChar/archive/main.zip" CACHE_REL = "data/.update_check.json" CACHE_TTL_SECONDS = 24 * 3600 diff --git a/share/config.json b/share/config.json index d8531a1..c37b5b6 100644 --- a/share/config.json +++ b/share/config.json @@ -1,5 +1,5 @@ { - "github_remote": "", - "gitea_remote": "", - "_note": "脱敏包接收远端,由授权方填写(GitHub / Gitea 仓库地址)。占位为空时 share_push.py 不推送。亦可用环境变量 ZIPING_SHARE_GITHUB_REMOTE / ZIPING_SHARE_GITEA_REMOTE 覆盖。" + "github_remote": "https://github.com/mxiaonian/ZiPingEightChar-archives.git", + "gitea_remote": "https://git.lingyaomiaojie.com/moxiaonian/ZiPingEightChar-archives.git", + "_note": "脱敏包接收远端。推送时优先用本机 git 凭证;公开用户的免登录推送令牌待授权方签发受限账号后另行下发(勿在此写入管理员令牌)。亦可用环境变量 ZIPING_SHARE_GITHUB_REMOTE / ZIPING_SHARE_GITEA_REMOTE 覆盖(可在 URL 中内嵌凭证)。" }