Open QGB opened 2 years ago
Linux to win
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w -buildid=" # 会自动生成 gohs.exe 不需要指定 -o CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w -buildid=" -o gohs.exe
Linux to win