Skip to content

Commit e186b33

Browse files
committed
Download for Android
1 parent fde3b37 commit e186b33

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x86-windo
161161

162162
</details>
163163

164+
165+
164166
<details>
165167
<summary>Linux</summary>
166168

@@ -235,8 +237,12 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-riscv64-l
235237
curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-armv7-linux -o chsrc; chmod +x ./chsrc
236238
```
237239

240+
如果你所在的处理器架构没有预编译版本,可以使用 [chsrc-bootstrap]
241+
238242
</details>
239243

244+
245+
240246
<details>
241247
<summary>macOS</summary>
242248

@@ -285,6 +291,8 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-macos
285291

286292
</details>
287293

294+
295+
288296
<details>
289297
<summary>BSD</summary>
290298

@@ -297,20 +305,22 @@ clang -Iinclude -Ilib src/chsrc-main.c -o chsrc
297305

298306
**如果还不存在这些依赖,你将会被死锁住: 我还没有换源,我该如何安装这些依赖呢?**
299307

300-
这就是 [chsrc-bootstrap](./bootstrap/) 起作用的时刻,你可使用BSD系统的原生脚本语言编写 `bootstrapper`[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
308+
这就是 [chsrc-bootstrap] 起作用的时刻,你可使用BSD系统的原生脚本语言编写 `bootstrapper`[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
301309

302310
注: `chsrc` 实现的 `FreeBSD recipe` 长期存在问题,因此一个新的 `bootstrapper` 是相当必要的,请帮助你自己和大家!
303311

304312
</details>
305313

314+
315+
306316
<details>
307317
<summary>Android/Termux</summary>
308318

309319
Termux 中默认无 `Wget`,我们都用 `cURL` 来下载安装
310320

311321
```bash
312322
# arm64/aarch64
313-
curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-arm64-linux -o chsrc; chmod +x ./chsrc
323+
curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-arm64-android -o chsrc; chmod +x ./chsrc
314324
```
315325

316326
如果你所在的处理器架构没有预编译版本,可以使用 [chsrc-bootstrap]:
@@ -321,6 +331,8 @@ curl -L https://gitee.com/RubyMetric/chsrc/raw/main/bootstrap/Termux.bash | bash
321331

322332
</details>
323333

334+
335+
324336
<details>
325337
<summary>其他平台</summary>
326338

@@ -332,7 +344,7 @@ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; make
332344

333345
**如果还不存在这些依赖,你将会被死锁住: 我还没有换源,我该如何安装这些依赖呢?**
334346

335-
这就是 [chsrc-bootstrap](./bootstrap/) 起作用的时刻,你可使用该平台原生脚本语言编写 `bootstrapper`[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
347+
这就是 [chsrc-bootstrap] 起作用的时刻,你可使用该平台原生脚本语言编写 `bootstrapper`[并向我们提交](https://github.com/RubyMetric/chsrc/issues/230)
336348

337349
</details>
338350

@@ -542,6 +554,7 @@ chsrc set conda | anaconda
542554
<br>
543555

544556
[rawstr4c]: https://github.com/RubyMetric/rawstr4c
557+
[chsrc-bootstrap]: ./bootstrap/
545558

546559
[@Aaron-212]: https://github.com/Aaron-212
547560
[@chenrui333]: https://github.com/chenrui333

tool/download-pre-on-GitHub.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# File Name : download-pre-on-GitHub.ps1
55
# File Authors : Aoran Zeng <[email protected]>
66
# Created On : <2023-09-21>
7-
# Last Modified : <2025-07-15>
7+
# Last Modified : <2025-07-22>
88
#
99
# Download all files from the `pre` release on GitHub:
1010
# https://github.com/RubyMetric/chsrc/releases/tag/pre
@@ -20,13 +20,17 @@ $destination = (Resolve-Path $destination).Path
2020
$names = @(
2121
'chsrc-x64-windows.exe'
2222
'chsrc-x86-windows.exe'
23+
2324
'chsrc-aarch64-macos'
2425
'chsrc-x64-macos'
26+
2527
'chsrc-x64-linux'
2628
'chsrc-aarch64-linux'
2729
'chsrc-riscv64-linux'
2830
'chsrc-armv7-linux'
2931
'chsrc_latest-1_amd64.deb'
32+
33+
'chsrc-arm64-android'
3034
)
3135

3236
# Like https://github.com/RubyMetric/chsrc/releases/download/latest/chsrc-x64-windows.exe

0 commit comments

Comments
 (0)