Skip to content

Commit ed402a2

Browse files
committed
Inform users that they can install the older version
1 parent 0df9d54 commit ed402a2

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/ISSUE_TEMPLATE/01-Report_Bug.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ body:
99
value: |
1010
感谢您花时间填写此 Bug 报告!
1111
12+
1. 有时您是通过包管理器安装的 `chsrc`,其版本往往稍旧,您可先尝试使用REAME中提供的安装命令来获取最新版本
13+
14+
2. 有时 Bug 是在最新版本中引入的,此时您可在安装命令时指定 `-v` 参数临时使用旧版本解决燃眉之急,详情查看README
15+
1216
- type: textarea
1317
id: what-did-you-do
1418
attributes:

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
! Contributors : Mikachu2333 <[email protected]>
88
! |
99
! Created On : <2023-12-28>
10-
! Last Modified : <2025-07-11>
10+
! Last Modified : <2025-07-12>
1111
! ---------------------------------------------------------- -->
1212

1313
<div align="center">
@@ -139,6 +139,9 @@ winget install RubyMetric.chsrc
139139
若下方链接无法访问,可使用 `https://gitee.com/RubyMetric/chsrc/raw/main/tool/installer.ps1` 替代
140140

141141
```PowerShell
142+
# 您可通过 -Version 参数
143+
# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些
144+
# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急
142145
"& { $(iwr -useb https://chsrc.run/windows) } -Version pre" | iex
143146
```
144147

@@ -197,6 +200,11 @@ $ curl https://chsrc.run/posix | sudo bash
197200
# 使用 -d 指定目录安装
198201
$ curl https://chsrc.run/posix | bash -s -- -d ./
199202

203+
# 使用 -v 指定版本 (不指定时默认为 pre)
204+
# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些
205+
# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急
206+
$ curl https://chsrc.run/posix | bash -s -- -v 0.2.1
207+
200208
# 使用 -l en 输出英文
201209
$ curl https://chsrc.run/posix | bash -s -- -l en
202210
```
@@ -246,6 +254,11 @@ $ curl https://chsrc.run/posix | sudo bash
246254
# 使用 -d 指定目录安装
247255
$ curl https://chsrc.run/posix | bash -s -- -d ./
248256

257+
# 使用 -v 指定版本 (不指定时默认为 pre)
258+
# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些
259+
# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急
260+
$ curl https://chsrc.run/posix | bash -s -- -v 0.2.1
261+
249262
# 使用 -l en 输出英文
250263
$ curl https://chsrc.run/posix | bash -s -- -l en
251264
```

0 commit comments

Comments
 (0)