update README.md.

mod readme

Signed-off-by: luyoyu <8829470+chuangxxt@user.noreply.gitee.com>
This commit is contained in:
luyoyu 2023-09-13 08:49:39 +00:00 committed by Gitee
parent 89e3e6a264
commit 7f81713d48
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -23,6 +23,7 @@
需要 go环境 出问题自行chatgpt
```
```sh
git clone https://gitlab.com/luyoyu/share-copilot.git
wget https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
@ -31,11 +32,11 @@ vim ~/.bashrc
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
#使生效环境变量
source ~/.bashrc
#验证安装
#验证go配置
go version
#cd到main.go源码目录
cd /share-copilot/source
go build
@ -46,7 +47,8 @@ go build
### 1.安装
```sh
git clone https://gitlab.com/luyoyu/share-copilot.git
wget https://gitee.com/chuangxxt/share-copilot/releases/download/1.0.2/share-copilot-linux-amd64.zip
unzip share-copilot-linux-amd64.zip
```
```sh
cd share-copilot