From 8640d12ac1e30b71faa74e0ecd20b9ed2ed2df6d Mon Sep 17 00:00:00 2001 From: Michael Sloan <89812914+Michael-A-Sloan@users.noreply.github.com> Date: Sun, 2 Aug 2026 16:31:46 -0400 Subject: [PATCH] fix(scripts): write package manifest without utf-8 bom Co-authored-by: Cursor --- scripts/package-release.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/package-release.ps1 b/scripts/package-release.ps1 index 192db6a..b7551e1 100644 --- a/scripts/package-release.ps1 +++ b/scripts/package-release.ps1 @@ -44,8 +44,9 @@ $meta = [ordered]@{ framework = "net9.0" timestamp = $timestamp } +$utf8NoBom = New-Object System.Text.UTF8Encoding $false $metaJson = $meta | ConvertTo-Json -Depth 5 -[System.IO.File]::WriteAllText((Join-Path $stageDir "meta.json"), $metaJson) +[System.IO.File]::WriteAllText((Join-Path $stageDir "meta.json"), $metaJson, $utf8NoBom) Copy-Item $dllPath -Destination (Join-Path $stageDir "Jellyfin.Plugin.Request.dll") $tempZip = Join-Path $releaseDir ("tmp_" + [guid]::NewGuid().ToString("N") + ".zip") @@ -81,10 +82,10 @@ $plugin = [ordered]@{ versions = @($versionObj) } -# Jellyfin requires a JSON array root. +# Jellyfin requires a JSON array root and no UTF-8 BOM. $pluginJson = ($plugin | ConvertTo-Json -Depth 8) $manifestJson = "[" + [Environment]::NewLine + $pluginJson + [Environment]::NewLine + "]" -[System.IO.File]::WriteAllText($manifestPath, $manifestJson) +[System.IO.File]::WriteAllText($manifestPath, $manifestJson, $utf8NoBom) Write-Host "Packaged: $zipPath" Write-Host "Checksum: $checksum"