Skip to content

Commit

Permalink
Add build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnreutersward committed Jan 16, 2021
1 parent b8cbee1 commit cb47cef
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cmd/opengraph/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

APP=opengraph
ARCH=amd64

# Set version
read -p "Version: " VERSION

# Build for macOS
GOOS=darwin GOARCH=$ARCH go build
zip $APP-$VERSION-darwin-$ARCH.zip $APP

# Build for Linux
GOOS=linux GOARCH=$ARCH go build
zip $APP-$VERSION-linux-$ARCH.zip $APP

# Build for Windows
GOOS=windows GOARCH=$ARCH go build
zip $APP-$VERSION-windows-$ARCH.zip $APP.exe

# Clean up
rm $APP
rm $APP.exe

0 comments on commit cb47cef

Please sign in to comment.