mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-16 04:07:27 +08:00
Notice chsrc-bootstrap
This commit is contained in:
parent
7e3a3f5260
commit
d656430142
8
.github/ISSUE_TEMPLATE/01-Report_Bug.yml
vendored
8
.github/ISSUE_TEMPLATE/01-Report_Bug.yml
vendored
@ -7,11 +7,11 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
感谢您花时间填写此 Bug 报告!
|
||||
感谢花时间填写此 Bug 报告!
|
||||
|
||||
1. 有时您是通过包管理器安装的 `chsrc`,其版本往往稍旧,您可先尝试使用REAME中提供的安装命令来获取最新版本
|
||||
1. 你可能是通过包管理器安装的 `chsrc`,其版本往往稍旧,你可先尝试使用REAME中提供的安装命令来获取最新版本
|
||||
|
||||
2. 有时 Bug 是在最新版本中引入的,此时您可在安装命令时指定 `-v` 参数临时使用旧版本解决燃眉之急,详情查看README
|
||||
2. 有时 Bug 是在最新版本中引入的,此时你可在安装命令时指定 `-v` 参数临时使用旧版本解决燃眉之急,详情查看README
|
||||
|
||||
- type: textarea
|
||||
id: what-did-you-do
|
||||
@ -85,7 +85,7 @@ body:
|
||||
id: terms
|
||||
attributes:
|
||||
label: 防止重复问题
|
||||
description: 您确认在打开这个新的 issue 之前已经搜索过类似的issue。您可以评论或订阅已经存在的相关 issue
|
||||
description: 请确认在打开这个新的 issue 之前已经搜索过类似的issue。你可以评论或订阅已经存在的相关 issue
|
||||
options:
|
||||
- label: 我已在项目中搜索过类似的 issue
|
||||
required: true
|
||||
|
31
README.md
31
README.md
@ -62,6 +62,8 @@
|
||||
|
||||
3. [搜集测速地址,进行精准测速](https://github.com/RubyMetric/chsrc/issues/205)
|
||||
|
||||
4. [chsrc-bootstrap: 为不存在预编译 `chsrc` 的平台提供支持](https://github.com/RubyMetric/chsrc/issues/230)
|
||||
|
||||
<br>
|
||||
|
||||
<details>
|
||||
@ -84,7 +86,7 @@
|
||||
<details>
|
||||
<summary>打包</summary>
|
||||
|
||||
想通过 `dnf`, `flatpak`, `snap` 等系统包管理工具来安装和更新`chsrc`?若您可提供维护,请访问 [issue#16 on GitHub](https://github.com/RubyMetric/chsrc/issues/16)
|
||||
想通过 `dnf`, `flatpak`, `snap` 等系统包管理工具来安装和更新`chsrc`?若可提供维护,请访问 [issue#16 on GitHub](https://github.com/RubyMetric/chsrc/issues/16)
|
||||
|
||||
- [x] `Homebrew`
|
||||
- [x] `Scoop`
|
||||
@ -139,7 +141,7 @@ winget install RubyMetric.chsrc
|
||||
若下方链接无法访问,可使用 `https://gitee.com/RubyMetric/chsrc/raw/main/tool/installer.ps1` 替代
|
||||
|
||||
```PowerShell
|
||||
# 您可通过 -Version 参数
|
||||
# 使用 -Version 指定版本 (不指定时默认为 pre)
|
||||
# 1. 安装 pre 版本; 这比从包管理器安装的总是更新一些
|
||||
# 2. 安装旧版本; 有时新版本可能引入某些 Bug,临时使用旧版本解决燃眉之急
|
||||
"& { $(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
|
||||
<details>
|
||||
<summary>BSD</summary>
|
||||
|
||||
如果已安装好了编译 `chsrc` 所需要的依赖,可直接运行:
|
||||
|
||||
```bash
|
||||
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc
|
||||
clang -Iinclude -Ilib src/chsrc-main.c -o chsrc
|
||||
```
|
||||
|
||||
**如果还不存在这些依赖,你将会被死锁住: 我还没有换源,我该如何安装这些依赖呢?**
|
||||
|
||||
这就是 [chsrc-bootstrap](./bootstrap/) 起作用的时刻,你可使用BSD系统的原生脚本语言编写 `bootstrapper`,[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
|
||||
|
||||
注: `chsrc` 实现的 `FreeBSD recipe` 长期存在问题,因此一个新的 `bootstrapper` 是相当必要的,请帮助你自己和大家!
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Android/Termux</summary>
|
||||
|
||||
```bash
|
||||
wget -O - https://gitee.com/RubyMetric/chsrc/raw/main/bootstrap/Termux.bash | bash
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>其他平台</summary>
|
||||
|
||||
若你所在的平台不存在预编译好的 `chsrc`,你需要手动编译。如果已安装好了编译 `chsrc` 所需要的依赖,可直接运行:
|
||||
|
||||
```bash
|
||||
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; make
|
||||
```
|
||||
|
||||
**如果还不存在这些依赖,你将会被死锁住: 我还没有换源,我该如何安装这些依赖呢?**
|
||||
|
||||
这就是 [chsrc-bootstrap](./bootstrap/) 起作用的时刻,你可使用该平台原生脚本语言编写 `bootstrapper`,[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
|
||||
|
||||
</details>
|
||||
|
||||
<br>
|
||||
@ -346,7 +371,7 @@ reset <target> # 重置,使用上游默认使用的源
|
||||
$ chsrc ls ruby
|
||||
$ chsrc set ruby rubychina
|
||||
|
||||
若您有自己的镜像地址,使用自定义URL
|
||||
若你有自己的镜像地址,使用自定义URL
|
||||
|
||||
$ chsrc set ruby https://gems.ruby-china.com/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user