From 4d6c6f9bf15baf24d3cacf271f4607665f6c8b80 Mon Sep 17 00:00:00 2001 From: Seednode Date: Wed, 19 Oct 2022 14:39:55 -0500 Subject: [PATCH] Removed Windows builds, since path handling is hard --- build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 382933d..1271548 100755 --- a/build.sh +++ b/build.sh @@ -10,8 +10,6 @@ platforms=( "linux/amd64" "linux/arm" "linux/arm64" - "windows/386" - "windows/amd64" ) for platform in "${platforms[@]}"; do @@ -20,9 +18,7 @@ for platform in "${platforms[@]}"; do GOARCH="${platform_split[1]}" output_name="${package_name}-${GOOS}-${GOARCH}" ld_flags='-s -w' - if [ "${GOOS}" == "windows" ]; then - output_name+=".exe" - elif [ "${GOOS}" == "linux" ] && [ "${GOARCH}" == "amd64" ]; then + if [ "${GOOS}" == "linux" ] && [ "${GOARCH}" == "amd64" ]; then ld_flags+=' -linkmode external -extldflags "-static"' fi env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" go build -ldflags "${ld_flags}" -o "builds/${output_name}"