Skip to content

Commit 3d69d2f

Browse files
author
LoukaO
committed
Fix YAML syntax: replace here-string with PowerShell hashtable
1 parent b36fe74 commit 3d69d2f

File tree

1 file changed

+42
-44
lines changed

1 file changed

+42
-44
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -43,50 +43,48 @@ jobs:
4343
$BUILD = "0"
4444
4545
# Create versioninfo.json with format expected by goversioninfo
46-
$jsonContent = @"
47-
{
48-
"FixedFileInfo": {
49-
"FileVersion": {
50-
"Major": $MAJOR,
51-
"Minor": $MINOR,
52-
"Patch": $PATCH,
53-
"Build": $BUILD
54-
},
55-
"ProductVersion": {
56-
"Major": $MAJOR,
57-
"Minor": $MINOR,
58-
"Patch": $PATCH,
59-
"Build": $BUILD
60-
},
61-
"FileFlagsMask": "3f",
62-
"FileFlags": "00",
63-
"FileOS": "040004",
64-
"FileType": "01",
65-
"FileSubType": "00"
66-
},
67-
"StringFileInfo": {
68-
"Comments": "TerminusAI CLI agent",
69-
"CompanyName": "TerminusAI",
70-
"FileDescription": "CLI AI agent that understands and executes tasks with your approval",
71-
"FileVersion": "$MAJOR.$MINOR.$PATCH.$BUILD",
72-
"InternalName": "terminusai",
73-
"LegalCopyright": "Copyright © 2024 TerminusAI",
74-
"LegalTrademarks": "",
75-
"OriginalFilename": "terminusai.exe",
76-
"PrivateBuild": "",
77-
"ProductName": "TerminusAI",
78-
"ProductVersion": "$MAJOR.$MINOR.$PATCH.$BUILD",
79-
"SpecialBuild": ""
80-
},
81-
"VarFileInfo": {
82-
"Translation": {
83-
"LangID": "0409",
84-
"CharsetID": "04B0"
85-
}
86-
}
87-
}
88-
"@
89-
$jsonContent | Set-Content versioninfo.json
46+
$versionInfo = @{
47+
FixedFileInfo = @{
48+
FileVersion = @{
49+
Major = [int]$MAJOR
50+
Minor = [int]$MINOR
51+
Patch = [int]$PATCH
52+
Build = [int]$BUILD
53+
}
54+
ProductVersion = @{
55+
Major = [int]$MAJOR
56+
Minor = [int]$MINOR
57+
Patch = [int]$PATCH
58+
Build = [int]$BUILD
59+
}
60+
FileFlagsMask = "3f"
61+
FileFlags = "00"
62+
FileOS = "040004"
63+
FileType = "01"
64+
FileSubType = "00"
65+
}
66+
StringFileInfo = @{
67+
Comments = "TerminusAI CLI agent"
68+
CompanyName = "TerminusAI"
69+
FileDescription = "CLI AI agent that understands and executes tasks with your approval"
70+
FileVersion = "$MAJOR.$MINOR.$PATCH.$BUILD"
71+
InternalName = "terminusai"
72+
LegalCopyright = "Copyright © 2024 TerminusAI"
73+
LegalTrademarks = ""
74+
OriginalFilename = "terminusai.exe"
75+
PrivateBuild = ""
76+
ProductName = "TerminusAI"
77+
ProductVersion = "$MAJOR.$MINOR.$PATCH.$BUILD"
78+
SpecialBuild = ""
79+
}
80+
VarFileInfo = @{
81+
Translation = @{
82+
LangID = "0409"
83+
CharsetID = "04B0"
84+
}
85+
}
86+
}
87+
$versionInfo | ConvertTo-Json -Depth 10 | Set-Content versioninfo.json
9088
9189
# Debug: Show the generated versioninfo.json
9290
Write-Host "Generated versioninfo.json:"

0 commit comments

Comments
 (0)