feat(编译脚本): 添加编译脚本

This commit is contained in:
xiaoqidun 2022-11-22 14:16:04 +08:00
parent 52eaba4cb9
commit c0a9c7e115
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea/
.vscode/
.devcontainer/
wslkd.exe

4
build.bat Normal file
View File

@ -0,0 +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

2
go.mod
View File

@ -2,4 +2,4 @@ module github.com/xiaoqidun/wslkd
go 1.19
require github.com/xiaoqidun/gowsl v0.0.0-20221122052230-b17f2681ea51 // indirect
require github.com/xiaoqidun/gowsl v0.0.0-20221122052230-b17f2681ea51