From 527ed379f07cccb077b9c45529c2b082e8428046 Mon Sep 17 00:00:00 2001 From: finley Date: Mon, 5 Jun 2023 07:53:45 +0800 Subject: [PATCH] add build for more dist --- build-all.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build-all.sh b/build-all.sh index 52901652..e604e377 100644 --- a/build-all.sh +++ b/build-all.sh @@ -1,2 +1,7 @@ -./build-darwin.sh -./build-linux.sh \ No newline at end of file +#!/usr/bin/env bash + +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o target/godis-linux-amd64 ./ +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o target/godis-linux-arm64 ./ +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o target/godis-darwin-amd64 ./ +CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o target/godis-darwin-arm64 ./ +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o target/godis-windows-amd64.exe ./