chsrc/README.md
2023-08-30 11:15:08 +08:00

77 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# chsrc
全平台命令行换源工具,**支持 Linux, Windows, macOS, BSD 等所有操作系统**。若有不支持的情况请提交issue.
<br>
## 为什么不使用Python/JS/Go/Rust?
1. `Python`/`JS`:
a. JS 程序员并非 Python 的拥趸,反之亦然。一个 JS 程序员 (比如Ryan Dahl) 渴望全天下的软件都是 JSPython 程序员希望电脑里全是 `.py`。没人希望安装另一个语言
b. 很多用户不是程序员有的程序员也不开发WebAI大数据他们不会预装这俩
c. 我们只想换源一个简单的换源工具不需要也不应该强行塞给用户一个庞大的解释器和数十、数百MB文件
2. `Go`: Go 还不足以编译到任何平台
3. `Rust`: 我不会 Rust
<br>
## 安装使用
```bash
# 编程语言开发
chsrc gem # 或 chsrc ruby
chsrc pip # 或 chsrc python
chsrc npm # 或 chsrc nodejs
chsrc cran # 或 chsrc r
chsrc cpan # 或 chsrc perl
chsrc julia
chsrc go
chsrc cargo # 或 chsrc rust 或 chsrc crate
chsrc maven
chsrc gradle
chsrc dotnet
# 操作系统
chsrc ubuntu
chsrc debian
chsrc fedora
chsrc arch
chsrc gentoo
chsrc kali
chsrc manjaro
chsrc deepin
chsrc openkylin
chsrc openeuler
chsrc openbsd
chsrc netbsd
# Windows
chsrc msys2 # 或 chsrc msys
# macOS
chsrc brew # 或 chsrc homebrew
# 其他软件
chsrc anaconda
```
<br>
## 开发
请确保拥有一个支持C99的C编译器。
```bash
make
make test
make clean
```