forked from SumoLogic/sumoshell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·22 lines (20 loc) · 768 Bytes
/
release.sh
File metadata and controls
executable file
·22 lines (20 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
rm sumoshell-linux.zip sumoshell-osx.zip
rm -rf /tmp/sumoshell-tmp
mkdir /tmp/sumoshell-tmp
cd /tmp/sumoshell-tmp
env GOOS=linux GOARCH=amd64 go build github.com/SumoLogic/sumoshell/sumo
env GOOS=linux GOARCH=amd64 go build github.com/SumoLogic/sumoshell/graph
env GOOS=linux GOARCH=amd64 go build github.com/SumoLogic/sumoshell/render
cd -
zip -rj sumoshell-linux.zip /tmp/sumoshell-tmp/*
set -e
rm -rf /tmp/sumoshell-tmp
mkdir /tmp/sumoshell-tmp
cd /tmp/sumoshell-tmp
env GOOS=darwin GOARCH=amd64 go build github.com/SumoLogic/sumoshell/sumo
env GOOS=darwin GOARCH=amd64 go build github.com/SumoLogic/sumoshell/graph
env GOOS=darwin GOARCH=amd64 go build github.com/SumoLogic/sumoshell/render
cd -
zip -rj sumoshell-osx.zip /tmp/sumoshell-tmp/*