Skip to content

Commit d656430

Browse files
committed
Notice chsrc-bootstrap
1 parent 7e3a3f5 commit d656430

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

.github/ISSUE_TEMPLATE/01-Report_Bug.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ body:
77
- type: markdown
88
attributes:
99
value: |
10-
感谢您花时间填写此 Bug 报告!
10+
感谢花时间填写此 Bug 报告!
1111
12-
1. 有时您是通过包管理器安装的 `chsrc`,其版本往往稍旧,您可先尝试使用REAME中提供的安装命令来获取最新版本
12+
1. 你可能是通过包管理器安装的 `chsrc`,其版本往往稍旧,你可先尝试使用REAME中提供的安装命令来获取最新版本
1313
14-
2. 有时 Bug 是在最新版本中引入的,此时您可在安装命令时指定 `-v` 参数临时使用旧版本解决燃眉之急,详情查看README
14+
2. 有时 Bug 是在最新版本中引入的,此时你可在安装命令时指定 `-v` 参数临时使用旧版本解决燃眉之急,详情查看README
1515
1616
- type: textarea
1717
id: what-did-you-do
@@ -85,7 +85,7 @@ body:
8585
id: terms
8686
attributes:
8787
label: 防止重复问题
88-
description: 您确认在打开这个新的 issue 之前已经搜索过类似的issue。您可以评论或订阅已经存在的相关 issue
88+
description: 请确认在打开这个新的 issue 之前已经搜索过类似的issue。你可以评论或订阅已经存在的相关 issue
8989
options:
9090
- label: 我已在项目中搜索过类似的 issue
9191
required: true

README.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262

6363
3. [搜集测速地址,进行精准测速](https://github.com/RubyMetric/chsrc/issues/205)
6464

65+
4. [chsrc-bootstrap: 为不存在预编译 `chsrc` 的平台提供支持](https://github.com/RubyMetric/chsrc/issues/230)
66+
6567
<br>
6668

6769
<details>
@@ -84,7 +86,7 @@
8486
<details>
8587
<summary>打包</summary>
8688

87-
想通过 `dnf`, `flatpak`, `snap` 等系统包管理工具来安装和更新`chsrc`若您可提供维护,请访问 [issue#16 on GitHub](https://github.com/RubyMetric/chsrc/issues/16)
89+
想通过 `dnf`, `flatpak`, `snap` 等系统包管理工具来安装和更新`chsrc`若可提供维护,请访问 [issue#16 on GitHub](https://github.com/RubyMetric/chsrc/issues/16)
8890

8991
- [x] `Homebrew`
9092
- [x] `Scoop`
@@ -139,7 +141,7 @@ winget install RubyMetric.chsrc
139141
若下方链接无法访问,可使用 `https://gitee.com/RubyMetric/chsrc/raw/main/tool/installer.ps1` 替代
140142

141143
```PowerShell
142-
# 您可通过 -Version 参数
144+
# 使用 -Version 指定版本 (不指定时默认为 pre)
143145
# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些
144146
# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急
145147
"& { $(iwr -useb https://chsrc.run/windows) } -Version pre" | iex
@@ -280,20 +282,43 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-macos
280282
<details>
281283
<summary>BSD</summary>
282284

285+
如果已安装好了编译 `chsrc` 所需要的依赖,可直接运行:
286+
283287
```bash
284288
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc
285289
clang -Iinclude -Ilib src/chsrc-main.c -o chsrc
286290
```
287291

292+
**如果还不存在这些依赖,你将会被死锁住: 我还没有换源,我该如何安装这些依赖呢?**
293+
294+
这就是 [chsrc-bootstrap](./bootstrap/) 起作用的时刻,你可使用BSD系统的原生脚本语言编写 `bootstrapper`[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
295+
296+
注: `chsrc` 实现的 `FreeBSD recipe` 长期存在问题,因此一个新的 `bootstrapper` 是相当必要的,请帮助你自己和大家!
297+
298+
</details>
299+
300+
<details>
301+
<summary>Android/Termux</summary>
302+
303+
```bash
304+
wget -O - https://gitee.com/RubyMetric/chsrc/raw/main/bootstrap/Termux.bash | bash
305+
```
306+
288307
</details>
289308

290309
<details>
291310
<summary>其他平台</summary>
292311

312+
若你所在的平台不存在预编译好的 `chsrc`,你需要手动编译。如果已安装好了编译 `chsrc` 所需要的依赖,可直接运行:
313+
293314
```bash
294315
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; make
295316
```
296317

318+
**如果还不存在这些依赖,你将会被死锁住: 我还没有换源,我该如何安装这些依赖呢?**
319+
320+
这就是 [chsrc-bootstrap](./bootstrap/) 起作用的时刻,你可使用该平台原生脚本语言编写 `bootstrapper`[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
321+
297322
</details>
298323

299324
<br>
@@ -346,7 +371,7 @@ reset <target> # 重置,使用上游默认使用的源
346371
$ chsrc ls ruby
347372
$ chsrc set ruby rubychina
348373

349-
若您有自己的镜像地址,使用自定义URL
374+
若你有自己的镜像地址,使用自定义URL
350375

351376
$ chsrc set ruby https://gems.ruby-china.com/
352377

0 commit comments

Comments
 (0)