修改 版本
This commit is contained in:
parent
dc7162b57d
commit
f2afa015bd
@ -1,3 +1,5 @@
|
|||||||
|
### Release v1.15
|
||||||
|
|
||||||
2020.01.02
|
2020.01.02
|
||||||
|
|
||||||
- 增加 指令配置项 `instruction`, 可以通过预定义的指令来控制 command 的行为
|
- 增加 指令配置项 `instruction`, 可以通过预定义的指令来控制 command 的行为
|
||||||
|
@ -31,8 +31,8 @@ go version 1.13
|
|||||||
|
|
||||||
### 下载二进制文件
|
### 下载二进制文件
|
||||||
|
|
||||||
Github: [download v1.12](https://github.com/dengsgo/fileboy/releases)
|
Github: [download v1.15](https://github.com/dengsgo/fileboy/releases)
|
||||||
Gitee: [dowmload v1.12](https://gitee.com/dengsgo/fileboy/releases)
|
Gitee: [dowmload v1.15](https://gitee.com/dengsgo/fileboy/releases)
|
||||||
|
|
||||||
下载已经编译好的对应平台二进制文件,重命名为`fileboy`, 加入系统 Path 中即可。
|
下载已经编译好的对应平台二进制文件,重命名为`fileboy`, 加入系统 Path 中即可。
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ notifier:
|
|||||||
# 请求超时 15 秒
|
# 请求超时 15 秒
|
||||||
# POST 格式:
|
# POST 格式:
|
||||||
# Content-Type: application/json;charset=UTF-8
|
# Content-Type: application/json;charset=UTF-8
|
||||||
# User-Agent: FileBoy Net Notifier v1.12
|
# User-Agent: FileBoy Net Notifier v1.15
|
||||||
# Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"}
|
# Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"}
|
||||||
# 例: http://example.com/notifier/fileboy-listener
|
# 例: http://example.com/notifier/fileboy-listener
|
||||||
# 不启用通知,请留空 ""
|
# 不启用通知,请留空 ""
|
||||||
|
@ -32,8 +32,8 @@ go version 1.13
|
|||||||
|
|
||||||
### BINARIES
|
### BINARIES
|
||||||
|
|
||||||
Github: [download v1.12](https://github.com/dengsgo/fileboy/releases)
|
Github: [download v1.15](https://github.com/dengsgo/fileboy/releases)
|
||||||
Gitee: [dowmload v1.12](https://gitee.com/dengsgo/fileboy/releases)
|
Gitee: [dowmload v1.15](https://gitee.com/dengsgo/fileboy/releases)
|
||||||
|
|
||||||
Download the compiled binary file of the corresponding platform, rename it `fileboy`, and add it to the system Path.
|
Download the compiled binary file of the corresponding platform, rename it `fileboy`, and add it to the system Path.
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ notifier:
|
|||||||
# timeout 15 second
|
# timeout 15 second
|
||||||
# POST :
|
# POST :
|
||||||
# Content-Type: application/json;charset=UTF-8
|
# Content-Type: application/json;charset=UTF-8
|
||||||
# User-Agent: FileBoy Net Notifier v1.12
|
# User-Agent: FileBoy Net Notifier v1.15
|
||||||
# Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"}
|
# Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"}
|
||||||
# e.g: http://example.com/notifier/fileboy-listener
|
# e.g: http://example.com/notifier/fileboy-listener
|
||||||
# no notice is enabled. Please leave it blank. ""
|
# no notice is enabled. Please leave it blank. ""
|
||||||
|
@ -61,7 +61,7 @@ func (n *NetNotifier) dispatch(params *postParams) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
req.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
req.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
||||||
req.Header.Set("User-Agent", "FileBoy Net Notifier v1.12")
|
req.Header.Set("User-Agent", "FileBoy Net Notifier v1.15")
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logError("notifier call failed. err:", err)
|
logError("notifier call failed. err:", err)
|
||||||
|
8
raw.go
8
raw.go
@ -89,7 +89,7 @@ notifier:
|
|||||||
# 请求超时 15 秒
|
# 请求超时 15 秒
|
||||||
# POST 格式:
|
# POST 格式:
|
||||||
# Content-Type: application/json;charset=UTF-8
|
# Content-Type: application/json;charset=UTF-8
|
||||||
# User-Agent: FileBoy Net Notifier v1.12
|
# User-Agent: FileBoy Net Notifier v1.15
|
||||||
# Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"}
|
# Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"}
|
||||||
# 例: http://example.com/notifier/fileboy-listener
|
# 例: http://example.com/notifier/fileboy-listener
|
||||||
# 不启用通知,请留空 ""
|
# 不启用通知,请留空 ""
|
||||||
@ -136,13 +136,13 @@ var logo = `
|
|||||||
_____ _ | | _____ ____) ) | | | |___| |
|
_____ _ | | _____ ____) ) | | | |___| |
|
||||||
| ___) | | | | | ___) | __ (| | | |\_____/
|
| ___) | | | | | ___) | __ (| | | |\_____/
|
||||||
| | _| |_| |_____| |_____| |__) ) |___| | ___
|
| | _| |_| |_____| |_____| |__) ) |___| | ___
|
||||||
|_| (_____)_______)_______)______/ \_____/ (___) V1.12
|
|_| (_____)_______)_______)______/ \_____/ (___) V1.15
|
||||||
`
|
`
|
||||||
var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License`
|
var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License`
|
||||||
|
|
||||||
var versionDesc = `
|
var versionDesc = `
|
||||||
Version fileboy: v1.12 filegirl: v` + strconv.Itoa(Version) + `
|
Version fileboy: v1.15 filegirl: v` + strconv.Itoa(Version) + `
|
||||||
Released 2019.12.18
|
Released 2020.01.05
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user