Merge pull request #3388 from crazy-max/fix-versionquad

ensure version quad for goversioninfo
This commit is contained in:
Sebastiaan van Stijn 2021-12-10 11:37:43 +01:00 committed by GitHub
commit a45974a468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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