From c2075a49e46c5d8c258b7a0d77884a1861685f92 Mon Sep 17 00:00:00 2001 From: Kaamkiya Date: Mon, 6 Jan 2025 09:01:19 -0500 Subject: [PATCH] feat: Add script for building releases --- scripts/release | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/release diff --git a/scripts/release b/scripts/release new file mode 100755 index 0000000..a9e5d27 --- /dev/null +++ b/scripts/release @@ -0,0 +1,14 @@ +#!/bin/sh + +echo "Building for linux amd64..." +GOOS=linux GOARCH=amd64 go build -o gg-linux-amd64 ./cmd/gg/ +echo "Building for linux arm64..." +GOOS=linux GOARCH=arm64 go build -o gg-linux-arm64 ./cmd/gg/ +echo "Building for windows amd64..." +GOOS=windows GOARCH=amd64 go build -o gg-windows-amd64.exe ./cmd/gg/ +echo "Building for windows arm64..." +GOOS=windows GOARCH=arm64 go build -o gg-windows-arm64.exe ./cmd/gg/ +echo "Building for darwin amd64..." +GOOS=darwin GOARCH=amd64 go build -o gg-darwin-amd64 ./cmd/gg/ +echo "Building for darwin arm64..." +GOOS=darwin GOARCH=arm64 go build -o gg-darwin-arm64 ./cmd/gg/