-
Notifications
You must be signed in to change notification settings - Fork 100
/
build.sh
executable file
·12 lines (11 loc) · 716 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
LDFLAGS="-s -w -X main.version=${TRAVIS_TAG:-TRAVIS_COMMIT}"
LDFLAGS+=" -X github.com/dropbox/dbxcli/cmd.personalAppKey=${PERSONAL_KEY}"
LDFLAGS+=" -X github.com/dropbox/dbxcli/cmd.personalAppSecret=${PERSONAL_SECRET}"
LDFLAGS+=" -X github.com/dropbox/dbxcli/cmd.teamAccessAppKey=${ACCESS_KEY}"
LDFLAGS+=" -X github.com/dropbox/dbxcli/cmd.teamAccessAppSecret=${ACCESS_SECRET}"
LDFLAGS+=" -X github.com/dropbox/dbxcli/cmd.teamManageAppKey=${MANAGE_KEY}"
LDFLAGS+=" -X github.com/dropbox/dbxcli/cmd.teamManageAppSecret=${MANAGE_SECRET}"
GO111MODULE=on gox -ldflags="${LDFLAGS}" \
-osarch="darwin/amd64 linux/amd64 windows/amd64 linux/arm openbsd/amd64" \
-output "dist/{{.Dir}}-{{.OS}}-{{.Arch}}"