4 Commits

Author SHA1 Message Date
dengsgo
c0364a62bc 发行 v1.15 2020-03-08 13:26:38 +08:00
dengsgo
a9758653ba 修改 changelog 2020-03-08 13:24:49 +08:00
dengsgo
b1c5f7da39 修改 readme mod 2020-03-05 15:37:36 +08:00
dengsgo
29fc62de90 更改 mod管理依赖 2020-03-05 15:31:47 +08:00
7 changed files with 34 additions and 10 deletions

View File

@@ -1,5 +1,12 @@
### Release v1.15
2020.03.08
- 优化 指令模式
- 使用 mod 管理依赖
- go version >= 1.13
- 优化 一些细节
2020.01.02
- 增加 指令配置项 `instruction`, 可以通过预定义的指令来控制 command 的行为

View File

@@ -10,8 +10,7 @@
# make build-start-mac 编译+启动
init:
go get -u gopkg.in/yaml.v2
go get -u gopkg.in/fsnotify/fsnotify.v1
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

View File

@@ -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
## 运行

View File

@@ -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

9
go.mod Normal file
View File

@@ -0,0 +1,9 @@
module fileboy
go 1.13
require (
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 // indirect
gopkg.in/fsnotify/fsnotify.v1 v1.4.7
gopkg.in/yaml.v2 v2.2.8
)

7
go.sum Normal file
View File

@@ -0,0 +1,7 @@
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 h1:uYVVQ9WP/Ds2ROhcaGPeIdVq0RIXVLwsHlnvJ+cT1So=
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 h1:XNNYLJHt73EyYiCZi6+xjupS9CpvmiDgjPTAjrBlQbo=
gopkg.in/fsnotify/fsnotify.v1 v1.4.7/go.mod h1:Fyux9zXlo4rWoMSIzpn9fDAYjalPqJ/K1qJ27s+7ltE=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

2
raw.go
View File

@@ -145,7 +145,7 @@ var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License`
var versionDesc = `
Version fileboy: v1.15 filegirl: v` + strconv.Itoa(Version) + `
Released 2020.03.03
Released 2020.03.08
Licence MIT
Author dengsgo [dengsgo@gmail.com]
Website https://github.com/dengsgo/fileboy