Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 3, 2021
1 parent c4d4ab1 commit f3da8fe
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@ SOURCE CODE:

### 安装

#### 通过 shell 安装
1. Shell (Mac/Linux)

如果你使用的是 Linux/macOS,你可以通过以下命令进行安装

```shell
```bash
# 安装最新版本
curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/master/install.sh | bash
# 或者安装指定版本
Expand All @@ -133,28 +131,24 @@ curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/m
curl -sf https://gobinaries.com/whatchanged-community/[email protected] | sh
```

#### 通过 Github release 页面下载安装

[release page](https://github.com/whatchanged-community/whatchanged/releases)页面下载对应平台的可执行文件,并且把它加入到 `$PATH` 环境变量中,并尝试以下命令
2. PowerShell (Windows):

```bash
$ whatchanged --help
iwr https://github.com/whatchanged-community/whatchanged/raw/master/install.ps1 -useb | iex
```

### 从源码中构建
3. [Github release page](https://github.com/whatchanged-community/whatchanged/releases) (全平台支持))

确保你已安装 `[email protected]`[goreleaser](https://github.com/goreleaser/goreleaser)
下载可执行文件,并且把它加入到`$PATH` 环境变量中,然后尝试以下命令:

```shell
$ git clone https://github.com/whatchanged-community/whatchanged.git $GOPATH/src/github.com/whatchanged-community/whatchanged
$ cd $GOPATH/src/github.com/whatchanged-community/whatchanged
$ make build
```bash
$ whatchanged --help
```

### 测试
1. 使用 [Golang](https://golang.org) 从源码中构建并安装 (全平台支持)

```bash
$ make test
go install github.com/whatchanged-community/[email protected]
```

### 常见问题
Expand Down

0 comments on commit f3da8fe

Please sign in to comment.