mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-12-29 01:33:40 +08:00
Better output
This commit is contained in:
parent
ca485c59d2
commit
18c23138cd
10
README.md
10
README.md
|
@ -100,8 +100,6 @@
|
||||||
<details>
|
<details>
|
||||||
<summary>Windows</summary>
|
<summary>Windows</summary>
|
||||||
|
|
||||||
<div style="margin-top: 20px"></div>
|
|
||||||
|
|
||||||
- 可通过 `scoop` 安装,感谢 [@Gn3po4g] 与 [@niheaven]
|
- 可通过 `scoop` 安装,感谢 [@Gn3po4g] 与 [@niheaven]
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -134,8 +132,6 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x86-windo
|
||||||
<details>
|
<details>
|
||||||
<summary>Linux</summary>
|
<summary>Linux</summary>
|
||||||
|
|
||||||
<div style="margin-top: 20px"></div>
|
|
||||||
|
|
||||||
- 支持 `AUR`,可通过 `yay` 安装,感谢 [@Jerry-Terrasse]
|
- 支持 `AUR`,可通过 `yay` 安装,感谢 [@Jerry-Terrasse]
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -188,8 +184,6 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-armv7-lin
|
||||||
<details>
|
<details>
|
||||||
<summary>macOS</summary>
|
<summary>macOS</summary>
|
||||||
|
|
||||||
<div style="margin-top: 20px"></div>
|
|
||||||
|
|
||||||
- 可通过 `homebrew` 安装,感谢 [@Aaron-212] 与 [@chenrui333]
|
- 可通过 `homebrew` 安装,感谢 [@Aaron-212] 与 [@chenrui333]
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -232,8 +226,6 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-macos
|
||||||
<details>
|
<details>
|
||||||
<summary>BSD</summary>
|
<summary>BSD</summary>
|
||||||
|
|
||||||
<div style="margin-top: 20px"></div>
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc
|
$ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc
|
||||||
$ clang -Iinclude src/chsrc-main.c -o chsrc
|
$ clang -Iinclude src/chsrc-main.c -o chsrc
|
||||||
|
@ -243,8 +235,6 @@ $ clang -Iinclude src/chsrc-main.c -o chsrc
|
||||||
<details>
|
<details>
|
||||||
<summary>其他平台</summary>
|
<summary>其他平台</summary>
|
||||||
|
|
||||||
<div style="margin-top: 20px"></div>
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; make
|
$ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; make
|
||||||
```
|
```
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# Contributors : Aoran Zeng <ccmywish@qq.com>
|
# Contributors : Aoran Zeng <ccmywish@qq.com>
|
||||||
# |
|
# |
|
||||||
# Created On : <2024-10-25>
|
# Created On : <2024-10-25>
|
||||||
# Last Modified : <2024-10-26>
|
# Last Modified : <2024-12-08>
|
||||||
#
|
#
|
||||||
# chsrc installer for Linux & macOS
|
# chsrc installer for Linux & macOS
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
@ -171,9 +171,9 @@ install() {
|
||||||
path_to_executable="${userOpt_install_dir}/${binary_name}"
|
path_to_executable="${userOpt_install_dir}/${binary_name}"
|
||||||
|
|
||||||
if [ "$userOpt_lang" = "zh" ]; then
|
if [ "$userOpt_lang" = "zh" ]; then
|
||||||
info "下载 ${binary_name} (${arch} 架构, ${platform} 平台, ${userOpt_version}版本) 到 ${path_to_executable}"
|
info "下载 ${binary_name} (架构: ${arch}, 平台: ${platform}, 版本: ${userOpt_version}) 到 ${path_to_executable}"
|
||||||
else
|
else
|
||||||
info "Downloading ${binary_name} (${arch} architecture, ${platform} platform, version ${userOpt_version}) to ${path_to_executable}"
|
info "Downloading ${binary_name} (architecture: ${arch}, platform: ${platform}, version: ${userOpt_version}) to ${path_to_executable}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if curl -sL "$url" -o "$path_to_executable"; then
|
if curl -sL "$url" -o "$path_to_executable"; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user