19 lines
363 B
Bash
19 lines
363 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# force go modules
|
||
|
export GOPATH=""
|
||
|
|
||
|
# disable cgo
|
||
|
export CGO_ENABLED=0
|
||
|
|
||
|
set -e
|
||
|
set -x
|
||
|
|
||
|
# linux
|
||
|
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/plugin
|
||
|
GOOS=linux GOARCH=arm64 go build -o release/linux/arm64/plugin
|
||
|
GOOS=linux GOARCH=arm go build -o release/linux/arm/plugin
|
||
|
|
||
|
# windows
|
||
|
GOOS=windows go build -o release/windows/amd64/plugin.exe
|