ensure version quad for goversioninfo

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-12-10 10:50:19 +01:00
parent 6fbf816901
commit 5fab1b2b10
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 4 additions and 4 deletions

View File

@ -17,10 +17,10 @@ cat > ./cli/winresources/versioninfo.json <<EOL
"FixedFileInfo": "FixedFileInfo":
{ {
"FileVersion": { "FileVersion": {
"Major": $(echo "$VERSION_QUAD" | cut -d. -f1), "Major": $(echo "${VERSION_QUAD:-0}" | cut -d. -f1),
"Minor": $(echo "$VERSION_QUAD" | cut -d. -f2), "Minor": $(echo "${VERSION_QUAD:-0}" | cut -d. -f2),
"Patch": $(echo "$VERSION_QUAD" | cut -d. -f3), "Patch": $(echo "${VERSION_QUAD:-0}" | cut -d. -f3),
"Build": $(echo "$VERSION_QUAD" | cut -d. -f4) "Build": $(echo "${VERSION_QUAD:-0}" | cut -d. -f4)
}, },
"FileFlagsMask": "3f", "FileFlagsMask": "3f",
"FileFlags ": "00", "FileFlags ": "00",