-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add version flag (v0.7.0), create proper release
* Add -version flag, set to v0.7,0 * Add build script * Remove old releases * Update readme
- Loading branch information
Showing
7 changed files
with
75 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
hastie | ||
hastie-*.tar.gz | ||
test/public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Build Script for creating multiple architecture releases | ||
|
||
# Requires: | ||
# go get github.com/mitchellh/gox | ||
|
||
## get version from self to include in file names | ||
go build | ||
VERSION=`hastie --version | sed -e 's/hastie v//'` | ||
|
||
echo "Building $VERSION" | ||
gox -osarch="linux/amd64 darwin/amd64 windows/amd64" -output "{{.Dir}}-$VERSION-{{.OS}}/{{.Dir}}" | ||
|
||
for arch in linux darwin windows; do | ||
tar cf hastie-$VERSION-$arch.tar hastie-$VERSION-$arch | ||
gzip hastie-$VERSION-$arch.tar | ||
rm -rf hastie-$VERSION-$arch | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.