Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
odlp committed Apr 30, 2019
1 parent 2319801 commit 4932a44
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bin/build_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -euo pipefail

SANDBOX=$(mktemp -d)
PACKAGE=github.com/remove-bg/go

printf "Building Linux...\n"
GOOS=linux go build -o "$SANDBOX/removebg-linux" $PACKAGE

printf "Building MacOS...\n"
GOOS=darwin go build -o "$SANDBOX/removebg-macos" $PACKAGE

printf "Building Windows...\n"
GOOS=windows go build -o "$SANDBOX/removebg.exe" $PACKAGE

printf "\nBuild summary:\n"
find "$SANDBOX" -type f -exec file {} \;

printf "\nSHA-1 digests for CF cli plugin repo:\n"
shasum $SANDBOX/removebg*

printf "\nBinaries are located here:\n$SANDBOX\n"
open "$SANDBOX"

0 comments on commit 4932a44

Please sign in to comment.