From 54e34d39cec2f98a795001439b3836fd938c00ac Mon Sep 17 00:00:00 2001 From: Wickedness Date: Tue, 7 Jul 2026 15:39:29 +0900 Subject: [PATCH] Write deploy manifest without BOM --- scripts/deploy-nas.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-nas.ps1 b/scripts/deploy-nas.ps1 index b15f29f..2a024da 100644 --- a/scripts/deploy-nas.ps1 +++ b/scripts/deploy-nas.ps1 @@ -75,13 +75,15 @@ if (Test-Path $releaseManifestPath -PathType Leaf) { } } if ($writeReleaseManifest) { - @{ + $releaseManifestJson = @{ app = "heros_web" commit = $fullCommit shortCommit = $commit qaVersion = $qaVersion generatedAt = (Get-Date).ToUniversalTime().ToString("o") - } | ConvertTo-Json -Depth 4 | Set-Content -LiteralPath $releaseManifestPath -Encoding UTF8 + } | ConvertTo-Json -Depth 4 + $utf8NoBom = New-Object System.Text.UTF8Encoding $false + [System.IO.File]::WriteAllText($releaseManifestPath, "$releaseManifestJson`n", $utf8NoBom) Write-Host "Wrote $releaseManifestPath for $commit ($qaVersion)" }