diff --git a/build.sh b/build.sh index e7c126e..726a688 100755 --- a/build.sh +++ b/build.sh @@ -7,9 +7,24 @@ go get github.com/mitchellh/gox godep restore -# Build for mac +# Build for platforms gox -cgo -osarch="Darwin/amd64" -output="build/darwin/rig" +gox -osarch="Linux/amd64" -output="build/linux/rig" +gox -osarch="Windows/amd64" -output="build/windows/rig" -# Build for windows and linux -gox -osarch="Linux/amd64" -osarch="Windows/amd64" -output="build/{{.OS}}/rig" +# Bundle for GitHub +# Get version +VERSION=`build/darwin/rig --version 2>&1 | grep 'rig version' | awk '{print $3}'` + +# Create archives for publishing to github +cp scripts/docker-machine-watch-rsync.sh build/darwin/. +pushd build/darwin +tar czf ../rig-${VERSION}-darwin-amd64.tar.gz rig docker-machine-watch-rsync.sh +popd +pushd build/linux +tar czf ../rig-${VERSION}-linux-amd64.tar.gz rig +popd +pushd build/windows +zip ../rig-${VERSION}-windows-amd64.zip rig.exe +popd \ No newline at end of file diff --git a/scripts/docker-machine-watch-rsync.sh b/scripts/docker-machine-watch-rsync.sh index 86a8624..0d4a8d5 100755 --- a/scripts/docker-machine-watch-rsync.sh +++ b/scripts/docker-machine-watch-rsync.sh @@ -36,9 +36,9 @@ Examples: > Watch for changes under ~/Projects/supercoolthing/app and rsync them into the Docker Machine named dev - $ docker-machine-watch-rsync -m dev -e .devtools-watch-ignore ~/Projects/supercoolthing/app + $ docker-machine-watch-rsync -m dev -e .rig-watch-ignore ~/Projects/supercoolthing/app - > Watch for changes under ~/Projects/supercoolthing/app excluding the patterns in .devtools-watch-ignore and rsync them into the Docker Machine named dev + > Watch for changes under ~/Projects/supercoolthing/app excluding the patterns in .rig-watch-ignore and rsync them into the Docker Machine named dev EOF exit 0 diff --git a/start.go b/start.go index 669670c..db35282 100644 --- a/start.go +++ b/start.go @@ -108,7 +108,7 @@ func (cmd *Start) Run(c *cli.Context) error { dash := Dashboard{} dash.LaunchDashboard(machine) - out.Info.Println("Your Phase2 Dev Tools VM is ready to use") + out.Info.Println("Outrigger is ready to use") return nil }