From ed402a22ffb5f8ac67d2a5c48472a835d7a13597 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sat, 12 Jul 2025 09:09:44 +0800 Subject: [PATCH] Inform users that they can install the older version --- .github/ISSUE_TEMPLATE/01-Report_Bug.yml | 4 ++++ README.md | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/01-Report_Bug.yml b/.github/ISSUE_TEMPLATE/01-Report_Bug.yml index 6a2ee20..f3f9f68 100644 --- a/.github/ISSUE_TEMPLATE/01-Report_Bug.yml +++ b/.github/ISSUE_TEMPLATE/01-Report_Bug.yml @@ -9,6 +9,10 @@ body: value: | 感谢您花时间填写此 Bug 报告! + 1. 有时您是通过包管理器安装的 `chsrc`,其版本往往稍旧,您可先尝试使用REAME中提供的安装命令来获取最新版本 + + 2. 有时 Bug 是在最新版本中引入的,此时您可在安装命令时指定 `-v` 参数临时使用旧版本解决燃眉之急,详情查看README + - type: textarea id: what-did-you-do attributes: diff --git a/README.md b/README.md index 08b1b57..74092fe 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ! Contributors : Mikachu2333 ! | ! Created On : <2023-12-28> - ! Last Modified : <2025-07-11> + ! Last Modified : <2025-07-12> ! ---------------------------------------------------------- -->
@@ -139,6 +139,9 @@ winget install RubyMetric.chsrc 若下方链接无法访问,可使用 `https://gitee.com/RubyMetric/chsrc/raw/main/tool/installer.ps1` 替代 ```PowerShell +# 您可通过 -Version 参数 +# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些 +# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急 "& { $(iwr -useb https://chsrc.run/windows) } -Version pre" | iex ``` @@ -197,6 +200,11 @@ $ curl https://chsrc.run/posix | sudo bash # 使用 -d 指定目录安装 $ curl https://chsrc.run/posix | bash -s -- -d ./ +# 使用 -v 指定版本 (不指定时默认为 pre) +# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些 +# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急 +$ curl https://chsrc.run/posix | bash -s -- -v 0.2.1 + # 使用 -l en 输出英文 $ curl https://chsrc.run/posix | bash -s -- -l en ``` @@ -246,6 +254,11 @@ $ curl https://chsrc.run/posix | sudo bash # 使用 -d 指定目录安装 $ curl https://chsrc.run/posix | bash -s -- -d ./ +# 使用 -v 指定版本 (不指定时默认为 pre) +# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些 +# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急 +$ curl https://chsrc.run/posix | bash -s -- -v 0.2.1 + # 使用 -l en 输出英文 $ curl https://chsrc.run/posix | bash -s -- -l en ```