ezshare/scripts/cross-compile.sh

6 lines
329 B
Bash
Raw Normal View History

2021-12-03 22:04:09 +00:00
#!/bin/bash
set -xe
GOOS=linux GOARCH=amd64 go build -tags clientcert -o /data/ezshare-client-linux-amd64 cmd/ezshare.go
GOOS=windows GOARCH=amd64 go build -tags clientcert -o /data/ezshare-client-windows-amd64 cmd/ezshare.go
GOOS=darwin GOARCH=amd64 go build -tags clientcert -o /data/ezshare-client-darwin-amd64 cmd/ezshare.go