feat: 脚本
这个提交包含在:
@@ -64,13 +64,14 @@ bash <(curl -fsSL https://git.suhang.me/suhang/scripts/raw/branch/release/realm/
|
||||
|
||||
## GitHub 代理
|
||||
|
||||
安装时会提示输入 GitHub 代理域名(**默认直连,不使用代理**;如需走代理推荐填 `ghfast.top`,输入 `none` 也表示直连)。脚本会把代理拼接到 GitHub API 与 release 下载地址前,例如:
|
||||
安装时会提示输入 GitHub 代理域名(**默认直连,不使用代理**;如需走代理推荐填 `ghfast.top`)。代理只作用于 release 二进制下载地址,例如:
|
||||
|
||||
```
|
||||
https://ghfast.top/https://github.com/zhboner/realm/releases/download/...
|
||||
https://ghfast.top/https://api.github.com/repos/zhboner/realm/releases/latest
|
||||
```
|
||||
|
||||
> `api.github.com`(用于查询最新版本号)不会走代理 —— 该接口大多数 GitHub 反代都无法转发。如果你的网络无法直连 `api.github.com`,需自行解决(例如通过 hosts 或本机代理)。
|
||||
|
||||
选择会保存到 `<INSTALL_DIR>/.proxy`,更新内核(菜单 `10`)时会沿用。如需更换代理,可直接编辑该文件后再执行更新。
|
||||
|
||||
## 调试
|
||||
|
||||
在新工单中引用
屏蔽一个用户