Skip to content

Commit e04a902

Browse files
committed
v1.2.8
1 parent 401a63a commit e04a902

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# Remove the leading 'v' from the commit message using PowerShell
2828
$VERSION = "${{ github.event.head_commit.message }}" -replace '^v', ''
2929
30-
# Create versioninfo.json with dynamic version numbers using PowerShell's Out-File with UTF8 encoding
30+
# Create the JSON metadata content
3131
$jsonContent = @{
3232
CompanyName = "IRCF"
3333
FileDescription = "ProxyReset is a lightweight Go tool for Windows that disables proxy settings without admin privileges, supporting multiple Windows versions and architectures."
@@ -37,8 +37,14 @@ jobs:
3737
ProductName = "ProxyReset"
3838
ProductVersion = $VERSION
3939
Author = "IRCF"
40-
} | ConvertTo-Json -Compress
41-
$jsonContent | Out-File -FilePath versioninfo.json -Encoding UTF8
40+
}
41+
42+
# Convert to JSON and write to versioninfo.json with UTF-8 encoding
43+
$jsonContent | ConvertTo-Json -Compress | Out-File -FilePath versioninfo.json -Encoding UTF8
44+
45+
# Verify the content of versioninfo.json by printing it
46+
Write-Host "Generated versioninfo.json content:"
47+
Get-Content versioninfo.json
4248
4349
# Generate resource files with icon and metadata
4450
goversioninfo -icon=./icon.ico -manifest=none

0 commit comments

Comments
 (0)