From f46d7ff6ee3bffd374e0fe49425ab87603d57fc7 Mon Sep 17 00:00:00 2001 From: April Ayres-Griffiths Date: Sat, 25 May 2024 09:23:45 -0700 Subject: [PATCH] fix(make.sh): migrate to go module, add darwin/arm64 windows/arm64 binaries --- go.mod | 7 +++++++ go.sum | 8 ++++++++ make.sh | 4 +--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a3a5434 --- /dev/null +++ b/go.mod @@ -0,0 +1,7 @@ +module github.com/paleotronic/diskm8 + +go 1.22.3 + +require github.com/chzyer/readline v1.5.1 + +require golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..b99eb42 --- /dev/null +++ b/go.sum @@ -0,0 +1,8 @@ +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 h1:y/woIyUBFbpQGKS0u1aHF/40WUDnek3fPOyD08H5Vng= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/make.sh b/make.sh index 368fb70..e860927 100755 --- a/make.sh +++ b/make.sh @@ -1,12 +1,10 @@ #!/bin/bash -ARCHES="darwin-amd64 windows-386 windows-amd64 linux-386 linux-amd64 linux-arm freebsd-arm freebsd-amd64 freebsd-386" +ARCHES="darwin-amd64 darwin-arm64 windows-386 windows-amd64 windows-arm64 linux-386 linux-amd64 linux-arm freebsd-arm freebsd-amd64 freebsd-386" PUBLISH="publish" mkdir -p "$PUBLISH" -go get github.com/chzyer/readline - exitState=0 for arch in `echo $ARCHES`; do export GOOS=`echo $arch | awk -F"-" '{print $1}'`