Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Commit 18e06ac

Browse files
authored
Merge pull request #17 from form3tech-oss/liamg-patch-1
Revert previous change to nest binaries in archive
2 parents 9da4348 + b2b1de7 commit 18e06ac

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

scripts/package.sh

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
#!/bin/bash
2-
3-
set -x
4-
52
BINARY="terraform-provider-alienvault_${TRAVIS_TAG}"
63
GO111MODULE=on
74

8-
package () {
9-
GOOS=$1
10-
echo $GOOS
11-
dir="${BINARY}_${GOOS}_amd64"
12-
mkdir "${dir}"
13-
GOOS=$1 GOARCH=amd64 go build -o "${dir}/${BINARY}"
14-
zip "${BINARY}_${GOOS}_amd64.zip" -r "${dir}"
15-
rm -rf "./${dir:?}/"
16-
}
5+
GOOS=darwin GOARCH=amd64 go build -o "${BINARY}"
6+
zip "${BINARY}_darwin_amd64.zip" "${BINARY}"
7+
rm -f "${BINARY}"
8+
9+
GOOS=linux GOARCH=amd64 go build -o "${BINARY}"
10+
zip "${BINARY}_linux_amd64.zip" "${BINARY}"
11+
rm -f "${BINARY}"
1712

18-
package darwin
19-
package linux
20-
package windows
13+
GOOS=windows GOARCH=amd64 go build -o "${BINARY}"
14+
zip "${BINARY}_windows_amd64.zip" "${BINARY}"
15+
rm -f "${BINARY}"

0 commit comments

Comments
 (0)