修复link_lite.json bug

This commit is contained in:
Vaica committed 2026-01-21 13:13:54 +08:00
1 parent 3f43909fe7
commit 4714121251
7 files changed
+251 -241

No files matched your search

+3 -2
View File
@@ -94,7 +94,8 @@ if (-not (Test-Path $jsonDir)) {
New-Item -ItemType Directory -Path $jsonDir | Out-Null
}
# Write to file
[System.IO.File]::WriteAllText($jsonPath, $json, [System.Text.Encoding]::UTF8)
# Write to file without BOM
$utf8NoBom = New-Object System.Text.UTF8Encoding $false
[System.IO.File]::WriteAllText($jsonPath, $json, $utf8NoBom)
Write-Host "Successfully generated $jsonPath" -ForegroundColor Green