Skip to content

Commit

Permalink
write versions on building
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed May 23, 2019
1 parent 3274b53 commit febf61e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Expand Up @@ -313,7 +313,8 @@ _my_main_do_sth(){
local versionInt=$(app_version_int)
echo "appName=$APPNAME | pkg=$PKG, $PROJ | version = $VERSION, $versionInt"

local W_PKG="github.com/hedzr/common/cli-tpl/cli_common"
# local W_PKG="github.com/hedzr/common/cli-tpl/cli_common"
local W_PKG="github.com/hedzr/cmdr"
local LDFLAGS="-s -w -X ${W_PKG}.Buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X ${W_PKG}.Githash=`git rev-parse HEAD` -X ${W_PKG}.Version=$VERSION -X ${W_PKG}.AppName=$APPNAME"
PKG_SRC=cli/main.go
#echo "LDFLAGS=$LDFLAGS"
Expand Down

0 comments on commit febf61e

Please sign in to comment.