diff --git a/misc/.gitignore b/misc/.gitignore new file mode 100644 index 0000000..cc35a2f --- /dev/null +++ b/misc/.gitignore @@ -0,0 +1 @@ +dio* diff --git a/misc/build_binaries.sh b/misc/build_binaries.sh index a07ed8e..29b49f7 100755 --- a/misc/build_binaries.sh +++ b/misc/build_binaries.sh @@ -1,35 +1,50 @@ #!/bin/sh # This is just a small sh script to generate the Dio release binaries -export GOOS=darwin -export GOARCH=unknown -for GOARCH in 386 amd64; do - echo Building Dio for ${GOOS} + ${GOARCH} + +export GOARCH=386 +for GOOS in android darwin freebsd netbsd openbsd plan9 windows linux; do + echo Building Dio for ${GOOS}-${GOARCH} + go build -o dio-${GOOS}-x86 .. + sha256sum dio-${GOOS}-x86 > dio-${GOOS}-x86.SHA256 +done + +export GOARCH=amd64 +for GOOS in android darwin freebsd netbsd openbsd plan9 solaris windows linux; do + echo Building Dio for ${GOOS}-${GOARCH} go build -o dio-${GOOS}-${GOARCH} .. - sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256 + sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-x86.SHA256 done -GOOS=freebsd -for GOARCH in 386 amd64; do - echo Building Dio for ${GOOS} + ${GOARCH} +export GOARCH=arm +for GOOS in android darwin freebsd netbsd openbsd plan9 windows linux; do + echo Building Dio for ${GOOS}-${GOARCH} go build -o dio-${GOOS}-${GOARCH} .. - sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256 + sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-x86.SHA256 done -GOOS=windows -for GOARCH in 386 amd64; do - echo Building Dio for ${GOOS} + ${GOARCH} - go build -o dio-${GOOS}-${GOARCH}.exe .. - sha256sum dio-${GOOS}-${GOARCH}.exe > dio-${GOOS}-${GOARCH}.exe.SHA256 +export GOARCH=arm64 +for GOOS in android darwin freebsd illumos netbsd openbsd linux; do + echo Building Dio for ${GOOS}-${GOARCH} + go build -o dio-${GOOS}-${GOARCH} .. + sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-x86.SHA256 done GOOS=linux -for GOARCH in 386 amd64 arm64 ppc64 ppc64le s390x; do - echo Building Dio for ${GOOS} + ${GOARCH} +for GOARCH in mips mips64 mips64le mipsle ppc64 ppc64le s390x; do + echo Building Dio for ${GOOS}-${GOARCH} go build -o dio-${GOOS}-${GOARCH} .. sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256 done -echo Building Dio for ${GOOS} + ARMv6 +echo Building Dio for ${GOOS}-ARMv6 GOARCH=arm GOARM=6 go build -o dio-${GOOS}-armv6 .. sha256sum dio-${GOOS}-armv6 > dio-${GOOS}-armv6.SHA256 + +echo Building Dio for aix-ppc64 +go build -o dio-aix-ppc64 .. +sha256sum dio-aix-ppc64 > dio-aix-ppc64.SHA256 + +echo Building Dio for js-wasm +go build -o dio-js-wasm .. +sha256sum dio-js-wasm > dio-js-wasm.SHA256