diff --git a/run.bat b/run.bat index 3142046294..f9fc72f72d 100644 --- a/run.bat +++ b/run.bat @@ -3,5 +3,6 @@ go env -w GOPROXY=https://goproxy.cn,direct go env -w GO111MODULE=auto go mod tidy ::go build -ldflags="-s -w" -o ZeroBot-Plugin.exe -go run main.go +go generate main.go +go run -ldflags "-s -w -checklinkname=0" main.go pause diff --git a/run.sh b/run.sh index a6112ad69d..2daec4b08e 100755 --- a/run.sh +++ b/run.sh @@ -3,4 +3,5 @@ go env -w GOPROXY=https://goproxy.cn,direct go env -w GO111MODULE=auto go mod tidy #go build -ldflags="-s -w" -o ZeroBot-Plugin -go run main.go +go generate main.go +go run -ldflags "-s -w -checklinkname=0" main.go