v1.0.2.1: Fix release zip - include Assets, Colourful, Newtonsoft.Json, SixLabors.ImageSharp

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-01-31 02:40:54 -05:00
parent 6e0eb32a24
commit 481f1cd45a
6 changed files with 44 additions and 11 deletions
+29
View File
@@ -0,0 +1,29 @@
# Creates a complete HSUI release zip with all required files.
# Run after: dotnet build -c Release
# Output: bin/Release/HSUI/latest.zip
$ErrorActionPreference = "Stop"
$ReleaseDir = "$PSScriptRoot\bin\Release"
$ZipPath = "$ReleaseDir\HSUI\latest.zip"
# Required files - must match what dev plugin loads from
$Files = @(
"$ReleaseDir\HSUI.dll",
"$ReleaseDir\HSUI.json",
"$ReleaseDir\changelog.md",
"$ReleaseDir\KamiToolKit.dll",
"$ReleaseDir\Colourful.dll",
"$ReleaseDir\Newtonsoft.Json.dll",
"$ReleaseDir\SixLabors.ImageSharp.dll",
"$ReleaseDir\Media",
"$ReleaseDir\Assets"
)
foreach ($f in $Files) {
if (-not (Test-Path $f)) { throw "Missing: $f" }
}
if (Test-Path $ZipPath) { Remove-Item $ZipPath -Force }
Compress-Archive -Path $Files -DestinationPath $ZipPath -CompressionLevel Optimal
Write-Host "Created: $ZipPath"