Removed Windows builds, since path handling is hard
This commit is contained in:
parent
41a7546334
commit
4d6c6f9bf1
6
build.sh
6
build.sh
|
@ -10,8 +10,6 @@ platforms=(
|
||||||
"linux/amd64"
|
"linux/amd64"
|
||||||
"linux/arm"
|
"linux/arm"
|
||||||
"linux/arm64"
|
"linux/arm64"
|
||||||
"windows/386"
|
|
||||||
"windows/amd64"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for platform in "${platforms[@]}"; do
|
for platform in "${platforms[@]}"; do
|
||||||
|
@ -20,9 +18,7 @@ for platform in "${platforms[@]}"; do
|
||||||
GOARCH="${platform_split[1]}"
|
GOARCH="${platform_split[1]}"
|
||||||
output_name="${package_name}-${GOOS}-${GOARCH}"
|
output_name="${package_name}-${GOOS}-${GOARCH}"
|
||||||
ld_flags='-s -w'
|
ld_flags='-s -w'
|
||||||
if [ "${GOOS}" == "windows" ]; then
|
if [ "${GOOS}" == "linux" ] && [ "${GOARCH}" == "amd64" ]; then
|
||||||
output_name+=".exe"
|
|
||||||
elif [ "${GOOS}" == "linux" ] && [ "${GOARCH}" == "amd64" ]; then
|
|
||||||
ld_flags+=' -linkmode external -extldflags "-static"'
|
ld_flags+=' -linkmode external -extldflags "-static"'
|
||||||
fi
|
fi
|
||||||
env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" go build -ldflags "${ld_flags}" -o "builds/${output_name}"
|
env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" go build -ldflags "${ld_flags}" -o "builds/${output_name}"
|
||||||
|
|
Loading…
Reference in New Issue