We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c578e3 commit ab6a085Copy full SHA for ab6a085
scripts/build-all-platforms
@@ -1,4 +1,9 @@
1
#!/bin/bash
2
+if [ -z "$JP_VERSION" ]
3
+then
4
+ echo "Must set JP_VERSION env var" 1>&2
5
+ exit 1
6
+fi
7
go get ./...
8
rm -rf ./build/jp-*
9
for goos in darwin linux windows freebsd; do
@@ -15,3 +20,9 @@ export GOARCH=arm
15
20
export GOARM=7
16
21
echo "Building for $GOOS/$GOARCH/$GOARM"
17
22
go build -v -o build/jp-$GOOS-$GOARCH-arm$GOARM 2> /dev/null
23
+# And finally we'll create a .tar.gz version for homebrew users.
24
+cp build/jp-darwin-amd64 build/jp
25
+cd build
26
+tar cvfz jp-$JP_VERSION.tar.gz jp
27
+rm jp
28
+cd ..
0 commit comments