diff --git a/go.mod b/go.mod index dc2deaccc4..1b6fe0c1ee 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/scaleway/scaleway-cli -go 1.12 +go 1.16 require ( github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 diff --git a/scripts/build.sh b/scripts/build.sh index 5baecf7922..6192041dc0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -22,6 +22,7 @@ VERSION=$(go run cmd/scw/main.go -o json version | jq -r .version) BIN_LINUX="$BIN_DIR/scw-$VERSION-linux-x86_64" BIN_LINUX_386="$BIN_DIR/scw-$VERSION-linux-386" BIN_DARWIN="$BIN_DIR/scw-$VERSION-darwin-x86_64" +BIN_DARWIN_ARM64="$BIN_DIR/scw-$VERSION-darwin-arm64" BIN_WINDOWS="$BIN_DIR/scw-$VERSION-windows-x86_64.exe" BIN_WINDOWS_386="$BIN_DIR/scw-$VERSION-windows-386.exe" @@ -31,11 +32,13 @@ GOOS=linux GOARCH=386 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_LINUX_386" cmd GOOS=darwin GOARCH=amd64 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_DARWIN" cmd/scw/main.go GOOS=windows GOARCH=amd64 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_WINDOWS" cmd/scw/main.go GOOS=windows GOARCH=386 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_WINDOWS_386" cmd/scw/main.go +GOOS=darwin GOARCH=arm64 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_DARWIN_ARM64" cmd/scw/main.go shasum -a 256 \ "$BIN_LINUX" \ "$BIN_LINUX_386" \ "$BIN_DARWIN" \ + "$BIN_DARWIN_ARM64" \ "$BIN_WINDOWS" \ "$BIN_WINDOWS_386" \ | sed -e 's#./bin/##' > "$BIN_DIR/SHA256SUMS" diff --git a/scripts/release/release.js b/scripts/release/release.js index a51cf13660..0609456649 100644 --- a/scripts/release/release.js +++ b/scripts/release/release.js @@ -215,6 +215,7 @@ async function main() { console.log(" attach assets to the release".gray); const releaseAssets = [ `scw-${newVersion}-darwin-x86_64`, + `scw-${newVersion}-darwin-arm64`, `scw-${newVersion}-linux-x86_64`, `scw-${newVersion}-linux-386`, `scw-${newVersion}-windows-x86_64.exe`,