Compare commits
4 Commits
v1.15.beta
...
v1.15
Author | SHA1 | Date | |
---|---|---|---|
|
c0364a62bc | ||
|
a9758653ba | ||
|
b1c5f7da39 | ||
|
29fc62de90 |
@@ -1,5 +1,12 @@
|
|||||||
### Release v1.15
|
### Release v1.15
|
||||||
|
|
||||||
|
2020.03.08
|
||||||
|
|
||||||
|
- 优化 指令模式
|
||||||
|
- 使用 mod 管理依赖
|
||||||
|
- go version >= 1.13
|
||||||
|
- 优化 一些细节
|
||||||
|
|
||||||
2020.01.02
|
2020.01.02
|
||||||
|
|
||||||
- 增加 指令配置项 `instruction`, 可以通过预定义的指令来控制 command 的行为
|
- 增加 指令配置项 `instruction`, 可以通过预定义的指令来控制 command 的行为
|
||||||
|
3
Makefile
3
Makefile
@@ -10,8 +10,7 @@
|
|||||||
|
|
||||||
# make build-start-mac 编译+启动
|
# make build-start-mac 编译+启动
|
||||||
init:
|
init:
|
||||||
go get -u gopkg.in/yaml.v2
|
go get -u
|
||||||
go get -u gopkg.in/fsnotify/fsnotify.v1
|
|
||||||
|
|
||||||
build-mac: ;@echo "编译-mac版";
|
build-mac: ;@echo "编译-mac版";
|
||||||
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -ldflags "-s -w" -o ./bin/fileboy-darwin-amd64.bin
|
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 该项目,进入主目录,运行命令:
|
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
|
||||||
go get -u gopkg.in/yaml.v2
|
|
||||||
## 编译
|
## 编译
|
||||||
go build
|
go build
|
||||||
## 运行
|
## 运行
|
||||||
|
@@ -22,7 +22,7 @@ For Hot Reload scenarios (typically for developing go projects without having to
|
|||||||
|
|
||||||
## COMPILE
|
## COMPILE
|
||||||
|
|
||||||
go version 1.13
|
Go >= 1.13
|
||||||
|
|
||||||
## CHANGELOG
|
## 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:
|
Clone project, enter the project directory, run the command:
|
||||||
```shell
|
```shell
|
||||||
|
export GO111MODULE=on
|
||||||
## installation dependency
|
## installation dependency
|
||||||
go get-u gopkg.in/fsnotify/fsnotify.v1
|
go get-u
|
||||||
go get-u gopkg.in/yaml.v2
|
|
||||||
## compile
|
## compile
|
||||||
go build
|
go build
|
||||||
## run
|
## run
|
||||||
|
9
go.mod
Normal file
9
go.mod
Normal 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
7
go.sum
Normal 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
2
raw.go
@@ -145,7 +145,7 @@ var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License`
|
|||||||
|
|
||||||
var versionDesc = `
|
var versionDesc = `
|
||||||
Version fileboy: v1.15 filegirl: v` + strconv.Itoa(Version) + `
|
Version fileboy: v1.15 filegirl: v` + strconv.Itoa(Version) + `
|
||||||
Released 2020.03.03
|
Released 2020.03.08
|
||||||
Licence MIT
|
Licence MIT
|
||||||
Author dengsgo [dengsgo@gmail.com]
|
Author dengsgo [dengsgo@gmail.com]
|
||||||
Website https://github.com/dengsgo/fileboy
|
Website https://github.com/dengsgo/fileboy
|
||||||
|
Reference in New Issue
Block a user