Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 14a9cd7

Browse files
committed
Added shell script to automate building the release binaries
1 parent eeee70e commit 14a9cd7

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

misc/build_binaries.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh
2+
3+
# This is just a small sh script to generate the Dio release binaries
4+
export GOOS=darwin
5+
export GOARCH=unknown
6+
for GOARCH in 386 amd64; do
7+
echo Building Dio for ${GOOS} + ${GOARCH}
8+
go build -o dio-${GOOS}-${GOARCH} ..
9+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
10+
done
11+
12+
GOOS=freebsd
13+
for GOARCH in 386 amd64; do
14+
echo Building Dio for ${GOOS} + ${GOARCH}
15+
go build -o dio-${GOOS}-${GOARCH} ..
16+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
17+
done
18+
19+
GOOS=windows
20+
for GOARCH in 386 amd64; do
21+
echo Building Dio for ${GOOS} + ${GOARCH}
22+
go build -o dio-${GOOS}-${GOARCH} ..
23+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
24+
done
25+
26+
GOOS=linux
27+
for GOARCH in 386 amd64 arm64 ppc64 ppc64le s390x; do
28+
echo Building Dio for ${GOOS} + ${GOARCH}
29+
go build -o dio-${GOOS}-${GOARCH} ..
30+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
31+
done
32+
33+
echo Building Dio for ${GOOS} + ARMv6
34+
GOARCH=arm GOARM=6 go build -o dio-${GOOS}-armv6 ..
35+
sha256sum dio-${GOOS}-armv6 > dio-${GOOS}-armv6.SHA256

0 commit comments

Comments
 (0)