diff --git a/Display/Display.go b/Display/Display.go index 43ad2de..6b4e25b 100644 --- a/Display/Display.go +++ b/Display/Display.go @@ -96,7 +96,7 @@ func InitDisplay() { } // endregion // region HEAD - headStr := fmt.Sprintf("SatHelperApp - %s.%s", SatHelperApp.GetVersion(), SatHelperApp.GetRevision()) + headStr := fmt.Sprintf("SatHelperApp - %s", SatHelperApp.GetVersion()) head := ui.NewPar(headStr) head.TextFgColor = ui.ColorWhite head.BorderFg = ui.ColorCyan diff --git a/Makefile b/Makefile index 8c39e00..696c341 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -PACKAGE := OpenSatelliteProject/SatHelperApp -REV_VAR := SatHelperApp.RevString -VERSION_VAR := SatHelperApp.VersionString -BUILD_DATE_VAR := SatHelperApp.CompilationDate -BUILD_TIME_VAR := SatHelperApp.CompilationTime +PACKAGE := opensatelliteproject/SatHelperApp +REV_VAR := github.com/opensatelliteproject/SatHelperApp.RevString +VERSION_VAR := github.com/opensatelliteproject/SatHelperApp.VersionString +BUILD_DATE_VAR := github.com/opensatelliteproject/SatHelperApp.CompilationDate +BUILD_TIME_VAR := github.com/opensatelliteproject/SatHelperApp.CompilationTime REPO_VERSION := $(shell git describe --always --dirty --tags) REPO_REV := $(shell git rev-parse --sq HEAD) BUILD_DATE := $(shell date +"%b %d %Y") diff --git a/travis-build.sh b/travis-build.sh index 61f090b..f85406e 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -1,15 +1,15 @@ #!/bin/bash -REV_VAR="SatHelperApp.RevString" -VERSION_VAR="SatHelperApp.VersionString" -BUILD_DATE_VAR="SatHelperApp.CompilationDate" -BUILD_TIME_VAR="SatHelperApp.CompilationTime" +REV_VAR="github.com/opensatelliteproject/SatHelperApp.RevString" +VERSION_VAR="github.com/opensatelliteproject/SatHelperApp.VersionString" +BUILD_DATE_VAR="github.com/opensatelliteproject/SatHelperApp.CompilationDate" +BUILD_TIME_VAR="github.com/opensatelliteproject/SatHelperApp.CompilationTime" REPO_VERSION=$(git describe --always --dirty --tags) REPO_REV=$(git rev-parse HEAD) -BUILD_DATE=$(date +"%b %d %Y") -BUILD_TIME=$(date +"%H:%M:%S") -GOBUILD_VERSION_ARGS="-ldflags \"-X ${REV_VAR}='${REPO_REV}' -X ${VERSION_VAR}='${REPO_VERSION}' -X ${BUILD_DATE_VAR}='${BUILD_DATE}' -X ${BUILD_TIME_VAR}='${BUILD_TIME}'\"" +BUILD_DATE=$(date +"%d%m%Y") +BUILD_TIME=$(date +"%H%M%S") +GOBUILD_VERSION_ARGS="-ldflags \"-X '${REV_VAR}=${REPO_REV}' -X '${VERSION_VAR}=${REPO_VERSION}' -X '${BUILD_DATE_VAR}=${BUILD_DATE}' -X '${BUILD_TIME_VAR}=${BUILD_TIME}'\"" echo "REV_VAR=${REV_VAR}" @@ -70,7 +70,7 @@ then echo "Building $i" cd ${i} echo go build ${GOBUILD_VERSION_ARGS} -o ../../bins/${i} - go build ${GOBUILD_VERSION_ARGS} -o ../../bins/${i} + bash -c "go build ${GOBUILD_VERSION_ARGS} -o ../../bins/${i}" echo "Zipping ${i}-${TAG}-linux-amd64.zip" zip -r "../../zips/${i}-${TAG}-linux-amd64.zip" ../../bins/$i cd ..