mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-25 17:36:45 +08:00
4 lines
355 B
Bash
4 lines
355 B
Bash
|
#!/bin/sh
|
||
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o release/goenv_linux_amd64 -trimpath -ldflags '-s -w' goenv.go
|
||
|
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o release/goenv_darwin_amd64 -trimpath -ldflags '-s -w' goenv.go
|
||
|
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release/goenv_windows_amd64.exe -trimpath -ldflags '-s -w' goenv.go
|