From 19b1ec5f3fe586dd42080ec59036970f7412f047 Mon Sep 17 00:00:00 2001 From: Zhengchen Tao Date: Wed, 20 May 2026 10:50:51 +0800 Subject: [PATCH] =?UTF-8?q?docs(readme):=20Releases=20=E6=94=B9=E5=9B=9E?= =?UTF-8?q?=20GitHub=20=E4=B8=BA=E4=B8=BB=E3=80=81Gitea=20=E4=BD=9C?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 回退 9e64d29 把方向搞反的部分:GitHub Releases 是 canonical 主发布 (action-gh-release@v2 一手做的),Gitea 是 mirror 步骤(走 Gitea API PowerShell 同步,有 GITEA_TOKEN 才执行)。以 GitHub 为对外主推。 - 下载段:GitHub Releases 作主入口,加一句"国内慢可走 Gitea 镜像" - 自行构建段:如实写"GitHub Actions 构建 → GitHub Releases 发布 → Gitea API 镜像 zip"三步 - README.en.md 同步 --- README.en.md | 7 ++++--- README.md | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.en.md b/README.en.md index 57cac31..5a1959e 100644 --- a/README.en.md +++ b/README.en.md @@ -22,7 +22,7 @@ with the game's scope state. 1. **Bind "hold breath" in-game** to a key that does not conflict with other actions (e.g. `F12`). -2. **Download** the latest `df-scope-hold-vX.X.X.zip` from [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases) and unzip anywhere. +2. **Download** the latest `df-scope-hold-vX.X.X.zip` from [GitHub Releases](https://github.com/ZhengchenTao/df-scope-hold/releases) and unzip anywhere. If GitHub is slow in your region, a mirror is available at [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases) (auto-synced from each GitHub release). 3. **Edit `config.ini`** so `key` matches the in-game binding. 4. **Run `df-scope-hold.exe`**. UAC will prompt for admin privileges — accept, as the anti-cheat-protected game process is otherwise undetectable. @@ -60,8 +60,9 @@ pyinstaller --onefile --uac-admin --console --name df-scope-hold script.py ``` Output at `dist/df-scope-hold.exe`. GitHub Actions builds on `windows-latest` -(see `.github/workflows/release.yml`) when you push a `v*` tag, then syncs -the artifact to [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases) +(see `.github/workflows/release.yml`) when you push a `v*` tag, publishes the +zip to [GitHub Releases](https://github.com/ZhengchenTao/df-scope-hold/releases), +and mirrors it to [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases) via the Gitea API — no local build needed. ## Disclaimer diff --git a/README.md b/README.md index f896ce8..17f70b2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ### 2. 下载并解压 -到 [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases) 下载最新的 `df-scope-hold-vX.X.X.zip`,解压到任意目录。 +到 [GitHub Releases](https://github.com/ZhengchenTao/df-scope-hold/releases) 下载最新的 `df-scope-hold-vX.X.X.zip`,解压到任意目录。国内访问慢的话可走 [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases)(GitHub 同 tag 自动同步过来的镜像)。 zip 内含: @@ -75,7 +75,7 @@ pip install -r requirements.txt pyinstaller --onefile --uac-admin --console --name df-scope-hold script.py ``` -产物在 `dist/df-scope-hold.exe`。仓库已配置 GitHub Actions(windows-latest 跑 PyInstaller,详见 `.github/workflows/release.yml`),推 `v*` tag 后自动构建,再通过 Gitea API 同步发布到 [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases),无需本地操作。 +产物在 `dist/df-scope-hold.exe`。仓库已配置 GitHub Actions(windows-latest 跑 PyInstaller,详见 `.github/workflows/release.yml`),推 `v*` tag 后自动构建并发布到 [GitHub Releases](https://github.com/ZhengchenTao/df-scope-hold/releases),同时通过 Gitea API 把 zip 镜像到 [Gitea Releases](https://git.zhengchentao.win/zhengchen.tao/df-scope-hold/releases),无需本地操作。 ## 免责声明