From 20e237dfaf57e28bb301e4ece42a4bce869fa9d5 Mon Sep 17 00:00:00 2001 From: Revela Date: Sun, 15 Mar 2026 09:03:54 -0500 Subject: [PATCH] Include base directory in release script Modified the CreateFromDirectory method to include the base directory in the zip file by changing the parameter from `$false` to `$true`. --- Update-NightlyRelease.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Update-NightlyRelease.ps1 b/Update-NightlyRelease.ps1 index 0b75dbce..8977d343 100644 --- a/Update-NightlyRelease.ps1 +++ b/Update-NightlyRelease.ps1 @@ -63,11 +63,11 @@ if (Test-Path $ZipPath) { Add-Type -AssemblyName System.IO.Compression.FileSystem $tempZip = "$ZipPath.tmp" -[System.IO.Compression.ZipFile]::CreateFromDirectory($ReleaseDir, $tempZip, [System.IO.Compression.CompressionLevel]::Optimal, $false) +[System.IO.Compression.ZipFile]::CreateFromDirectory($ReleaseDir, $tempZip, [System.IO.Compression.CompressionLevel]::Optimal, $true) # Rewrite the zip without .pch files $zipIn = [System.IO.Compression.ZipFile]::Open($tempZip, 'Update') -$toRemove = $zipIn.Entries | Where-Object { $_.FullName -like "*.pch" -or $_.FullName -like "*.zip" } +$toRemove = @($zipIn.Entries | Where-Object { $_.FullName -like "*.pch" -or $_.FullName -like "*.zip" }) foreach ($entry in $toRemove) { $entry.Delete() } $zipIn.Dispose()