基于fsnotify的文件监控模块,为eSync自动编译加载提供更改监听功能!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
379 B

4 years ago
4 years ago
4 years ago
  1. # fileSync 同步文件更改相关
  2. # go windows下程序运行隐藏dos窗口
  3. go build -ldflags "-a -s -w -H=windowsgui"
  4. start ./upx396/upx.exe --best fileSync.exe
  5. # linux 编译
  6. go build -ldflags "-a -s -w"
  7. ./upx396/upx --best fileSync
  8. # 升级版本
  9. 先删除 go.mod go.sum 然后执行go mod init fileSync go mod tidy 然后编译