File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11module github.com/scaleway/scaleway-cli
22
3- go 1.12
3+ go 1.16
44
55require (
66 github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ VERSION=$(go run cmd/scw/main.go -o json version | jq -r .version)
2222BIN_LINUX=" $BIN_DIR /scw-$VERSION -linux-x86_64"
2323BIN_LINUX_386=" $BIN_DIR /scw-$VERSION -linux-386"
2424BIN_DARWIN=" $BIN_DIR /scw-$VERSION -darwin-x86_64"
25+ BIN_DARWIN_ARM64=" $BIN_DIR /scw-$VERSION -darwin-arm64"
2526BIN_WINDOWS=" $BIN_DIR /scw-$VERSION -windows-x86_64.exe"
2627BIN_WINDOWS_386=" $BIN_DIR /scw-$VERSION -windows-386.exe"
2728
@@ -31,11 +32,13 @@ GOOS=linux GOARCH=386 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_LINUX_386" cmd
3132GOOS=darwin GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DARWIN " cmd/scw/main.go
3233GOOS=windows GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_WINDOWS " cmd/scw/main.go
3334GOOS=windows GOARCH=386 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_WINDOWS_386 " cmd/scw/main.go
35+ GOOS=darwin GOARCH=arm64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DARWIN_ARM64 " cmd/scw/main.go
3436
3537shasum -a 256 \
3638 " $BIN_LINUX " \
3739 " $BIN_LINUX_386 " \
3840 " $BIN_DARWIN " \
41+ " $BIN_DARWIN_ARM64 " \
3942 " $BIN_WINDOWS " \
4043 " $BIN_WINDOWS_386 " \
4144 | sed -e ' s#./bin/##' > " $BIN_DIR /SHA256SUMS"
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ async function main() {
215215 console . log ( " attach assets to the release" . gray ) ;
216216 const releaseAssets = [
217217 `scw-${ newVersion } -darwin-x86_64` ,
218+ `scw-${ newVersion } -darwin-arm64` ,
218219 `scw-${ newVersion } -linux-x86_64` ,
219220 `scw-${ newVersion } -linux-386` ,
220221 `scw-${ newVersion } -windows-x86_64.exe` ,
You can’t perform that action at this time.
0 commit comments