Skip to content

Commit

Permalink
Release v2.0.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yudai committed Aug 23, 2017
1 parent 4d682aa commit 248f51b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
OUTPUT_DIR = ./builds
GIT_COMMIT = `git rev-parse HEAD | cut -c1-10`
BUILD_OPTIONS = -ldflags "-X main.CommitID=$(GIT_COMMIT)"
GIT_COMMIT = `git rev-parse HEAD | cut -c1-7`
VERSION = 2.0.0-alpha.1
BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION) -X main.CommitID=$(GIT_COMMIT)"


gotty: server/asset.go main.go server/*.go webtty/*.go backend/*.go Makefile
godep go build ${BUILD_OPTIONS}
Expand Down Expand Up @@ -66,7 +68,7 @@ cross_compile:

targz:
mkdir -p ${OUTPUT_DIR}/dist
cd ${OUTPUT_DIR}/pkg/; for osarch in *; do (cd $$osarch; tar zcvf ../../dist/gotty_$$osarch.tar.gz ./*); done;
cd ${OUTPUT_DIR}/pkg/; for osarch in *; do (cd $$osarch; tar zcvf ../../dist/gotty_${VERSION}_$$osarch.tar.gz ./*); done;

shasums:
cd ${OUTPUT_DIR}/dist; sha256sum * > ./SHA256SUMS
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

var Version = "2.0.0-alpha"
var Version = "unknown_version"
var CommitID = "unknown_commit"

0 comments on commit 248f51b

Please sign in to comment.