Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"
1 change: 1 addition & 0 deletions scripts/release/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down