Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
DVO-6278 - Script to generate binaries for a release
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-kretschmer-c2fo committed Jun 1, 2016
1 parent dbcb615 commit b270f65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gull-release/
vendor/
Godeps/
# Compiled Object files, Static and Dynamic libs (Shared Objects)
Expand Down
25 changes: 13 additions & 12 deletions script/release.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
#! /bin/bash

set -e

WORK=/tmp/gull-release
mkdir -p $WORK

SORUCE=github.com/c2fo/gull/source/bin/gull
set -x

GOOS=darwin
GOARCH=amd64
WORK=./gull-release
rm -rf $WORK
set -e
mkdir -p $WORK

go build -v $SOURCE -o $WORK/mac/gull
SOURCE="github.com/c2fo/gull/source/bin/gull"

GOOS=windows
export GOARCH=amd64

go build -v $SOURCE -o $WORK/win/gull.exe
export GOOS=darwin
go build -o $WORK/mac/gull -v $SOURCE

GOOS=linux
export GOOS=windows
go build -o $WORK/win/gull.exe -v $SOURCE

go build -v $SOURCE -o $WORK/lin/gull
export GOOS=linux
go build -o $WORK/lin/gull -v $SOURCE

0 comments on commit b270f65

Please sign in to comment.