chore(编译脚本): 更新编译脚本
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
xiaoqidun 2023-10-07 20:58:54 +08:00
parent 98c935ec35
commit 74eb16b176
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
set GOOS=windows
set GOARCH=amd64
set CGO_ENABLED=0
go build -o wslkd.exe -trimpath -ldflags "-H windowsgui -s -w" wslkd.go
go build -o wslkd.exe -trimpath -ldflags "-H windowsgui -s -w -buildid=" wslkd.go

View File

@ -1,2 +1,2 @@
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release/wslkd_amd64.exe -trimpath -ldflags '-H windowsgui -s -w' wslkd.go
GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -o release/wslkd_arm64.exe -trimpath -ldflags '-H windowsgui -s -w' wslkd.go
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release/wslkd_amd64.exe -trimpath -ldflags "-H windowsgui -s -w -buildid=" wslkd.go
GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -o release/wslkd_arm64.exe -trimpath -ldflags "-H windowsgui -s -w -buildid=" wslkd.go

2
go.mod
View File

@ -1,5 +1,5 @@
module github.com/xiaoqidun/wslkd
go 1.20
go 1.21.2
require github.com/xiaoqidun/gowsl v0.0.0-20230413023629-a3ca5183ee17