Arafath, that's kind of what I did (except I replaced the git command with
my setversion.exe). It worked as expected... thank you!
On Friday, January 27, 2017 at 12:43:01 AM UTC-6, Arafath M wrote:
>
> Hi Eric,
>
> Under Windows, create a bat file with following contents. It uses latest
> tag f
Arafath, that's kind of what I did (expect I replaced the git command with
my setversion.exe). It worked as expected... thank you!
On Friday, January 27, 2017 at 12:43:01 AM UTC-6, Arafath M wrote:
>
> Hi Eric,
>
> Under Windows, create a bat file with following contents. It uses latest
> tag f
Hi Eric,
Under Windows, create a bat file with following contents. It uses latest
tag from git repo as version.
echo Rebuilding App...
for /f %%i in ('git describe --tags ') do set version=%%i
go install -a -v -ldflags "-X main.versionBuild=%version%"
Sincerely,
Arafath M
On Fri, Jan 27, 2017
Got it to work as intended under Linux; however, compiling on Windows is a
no-go. Perhaps I have to create a script, pass the output to a variable,
and insert the variable into the build command? Hopefully not, so if
anybody has any suggestions... it would be highly appreciated. Thanks!
On T