更新 Makefile

add -u flag
This commit is contained in:
Deng.Liu 2019-12-11 16:13:25 +08:00 committed by GitHub
parent 679ddba2d8
commit 7dd5b44ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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