diff --git a/dev/src-expose/release.sh b/dev/src-expose/release.sh index 6c5244a674b..828b389b5e3 100755 --- a/dev/src-expose/release.sh +++ b/dev/src-expose/release.sh @@ -8,9 +8,11 @@ cd "src-expose/$(git rev-parse HEAD)" echo "src-expose built from https://github.com/sourcegraph/sourcegraph" >info.txt echo >>info.txt git log -n1 >>info.txt -mkdir linux-amd64 darwin-amd64 -CGO_ENABLED=0 GOOS=linux go build -trimpath -o linux-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose -CGO_ENABLED=0 GOOS=darwin go build -trimpath -o darwin-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +mkdir linux-amd64 darwin-amd64 linux-arm64 darwin-arm64 +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -o linux-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -trimpath -o darwin-amd64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -o linux-arm64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose +CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -trimpath -o darwin-arm64/src-expose github.com/sourcegraph/sourcegraph/dev/src-expose cd - rm -rf src-expose/latest cp -r "src-expose/$(git rev-parse HEAD)" src-expose/latest