From 46ea1b5767f214abb2666f97ac01e4da085fc5f1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Aug 2025 22:40:41 +0200 Subject: [PATCH] Added build script --- build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..d1f6b30 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash +package="fitra" + +platforms=("linux/amd64" "linux/arm64") + +for platform in "${platforms[@]}" +do + platform_split=(${platform//\// }) + GOOS=${platform_split[0]} + GOARCH=${platform_split[1]} + output_name=$package'-'$GOOS'-'$GOARCH + + env GOOS=$GOOS GOARCH=$GOARCH go build -o $output_name + echo "Built $output_name" +done \ No newline at end of file