mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-24 21:04:24 +00:00
Release v2.0.0-alpha.1
This commit is contained in:
parent
4d682aa01d
commit
248f51b290
8
Makefile
8
Makefile
@ -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}
|
||||
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
package main
|
||||
|
||||
var Version = "2.0.0-alpha"
|
||||
var Version = "unknown_version"
|
||||
var CommitID = "unknown_commit"
|
||||
|
Loading…
Reference in New Issue
Block a user