josephspurrier / goversioninfo

Golang Microsoft Windows File Properties/Version Info and Icon Resource Generator
MIT License
836 stars 115 forks source link

set -file-version from shell #62

Closed edoardoc closed 1 year ago

edoardoc commented 1 year ago

Hi there,

not really an issue, could you show how to set -file-version from shell, without having to fill it in versioninfo.json ? I am trying to run something like

go generate goversioninfo -file-version="3.3.3" -icon=testdata/resource/icon.ico cmd/util/main.go

but with no success, still the versioninfo.json file has priority over the parameter. I also tried passing -skip-versioninfo but in that case I get ver. 0.0.0.0