修改 readme mod
This commit is contained in:
parent
29fc62de90
commit
b1c5f7da39
2
Makefile
2
Makefile
@ -10,7 +10,7 @@
|
||||
|
||||
# make build-start-mac 编译+启动
|
||||
init:
|
||||
go get -u
|
||||
go get -u
|
||||
|
||||
build-mac: ;@echo "编译-mac版";
|
||||
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -ldflags "-s -w" -o ./bin/fileboy-darwin-amd64.bin
|
||||
|
10
README.md
10
README.md
@ -22,7 +22,7 @@ fileboy,文件变更监听通知系统,使用 Go 编写。
|
||||
|
||||
## 编译环境
|
||||
|
||||
go version 1.13
|
||||
Go >= 1.13
|
||||
|
||||
## 更新日志
|
||||
|
||||
@ -40,10 +40,12 @@ Gitee: [dowmload v1.15](https://gitee.com/dengsgo/fileboy/releases)
|
||||
### 源码编译
|
||||
|
||||
clone 该项目,进入主目录,运行命令:
|
||||
```shell
|
||||
```bash
|
||||
## 确保本地 Go 启用 modules
|
||||
export GO111MODULE=on
|
||||
go env -w GOPROXY=https://goproxy.io,direct
|
||||
## 安装依赖
|
||||
go get -u gopkg.in/fsnotify/fsnotify.v1
|
||||
go get -u gopkg.in/yaml.v2
|
||||
go get -u
|
||||
## 编译
|
||||
go build
|
||||
## 运行
|
||||
|
@ -22,7 +22,7 @@ For Hot Reload scenarios (typically for developing go projects without having to
|
||||
|
||||
## COMPILE
|
||||
|
||||
go version 1.13
|
||||
Go >= 1.13
|
||||
|
||||
## CHANGELOG
|
||||
|
||||
@ -42,9 +42,9 @@ Download the compiled binary file of the corresponding platform, rename it `file
|
||||
|
||||
Clone project, enter the project directory, run the command:
|
||||
```shell
|
||||
export GO111MODULE=on
|
||||
## installation dependency
|
||||
go get-u gopkg.in/fsnotify/fsnotify.v1
|
||||
go get-u gopkg.in/yaml.v2
|
||||
go get-u
|
||||
## compile
|
||||
go build
|
||||
## run
|
||||
|
Loading…
Reference in New Issue
Block a user