From c43305acdfbc58ae590c234fa32729b580221d6e Mon Sep 17 00:00:00 2001 From: Terrasse Date: Thu, 29 Aug 2024 14:40:18 +0800 Subject: [PATCH] add AUR support documents --- README.md | 13 ++++++++++++- pkg/README.md | 11 ++++++++++- src/chsrc.c | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f933b2c6..f3f7ff35 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ - [x] `Homebrew` - [x] `Scoop` - [ ] `Flatpak` -- [ ] `AUR` +- [x] `AUR` - [ ] 缺乏其他平台/包维护者
@@ -75,6 +75,16 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x86-windo
Linux +- 通过包管理器安装,支持持续更新。目前支持 `AUR`,其他平台欢迎[贡献](#-贡献) + +```bash +# AUR +yay -S chsrc # binary from release +yay -S chsrc-git # build from source, the latest version, maybe unstable +``` + +- 手动下载二进制文件安装 + ```bash # x64 curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-linux -o chsrc; chmod +x ./chsrc @@ -88,6 +98,7 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-riscv64-l # armv7 curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-armv7-linux -o chsrc; chmod +x ./chsrc ``` +
diff --git a/pkg/README.md b/pkg/README.md index 245920dd..dd7732b3 100644 --- a/pkg/README.md +++ b/pkg/README.md @@ -4,7 +4,7 @@ https://github.com/RubyMetric/chsrc/issues/16 - [x] `Homebrew` - [x] `Scoop` -- [ ] `AUR` +- [x] `AUR` - [ ] `Flatpak` - [ ] ... @@ -12,6 +12,9 @@ https://github.com/RubyMetric/chsrc/issues/16 $ brew install chsrc $ scoop install chsrc + +$ yay -S chsrc # binary from release +$ yay -S chsrc-git # build from source ```
@@ -24,3 +27,9 @@ https://github.com/Homebrew/homebrew-core/blob/master/Formula/c/chsrc.rb # Scoop https://github.com/ScoopInstaller/Main/blob/master/bucket/chsrc.json + +# AUR + +[chsrc](https://aur.archlinux.org/packages/chsrc-git):从release打包的稳定发布版本 + +[chsrc-git](https://aur.archlinux.org/packages/chsrc-git):从最新源码构建的版本,可能不稳定 \ No newline at end of file diff --git a/src/chsrc.c b/src/chsrc.c index 721f4251..32e00a05 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -10,6 +10,7 @@ * | Shengwei Chen <414685209@qq.com> * | BlockLune * | Mr. Will + * | Terrasse * | * Created On : <2023-08-28> * Last Modified : <2024-08-29>