Skip to content

Instantly share code, notes, and snippets.

@GrooveStomp
Created December 13, 2017 17:10
Show Gist options
  • Save GrooveStomp/ff74c388d9f68643bcd3ed383c81d218 to your computer and use it in GitHub Desktop.
Save GrooveStomp/ff74c388d9f68643bcd3ed383c81d218 to your computer and use it in GitHub Desktop.
bash build
#!/usr/bin/env sh
rm -f confluence_tool
GOOS=linux GOARCH=amd64 go build -o confluence_tool main.go
if [ -f confluence_tool ]; then
tar -czf confluence_tool.linux.tar.gz confluence_tool data
fi
GOOS=darwin GOARCH=amd64 go build -o confluence_tool main.go
if [ -f confluence_tool ]; then
tar -czf confluence_tool.osx.tar.gz confluence_tool data
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment