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`.
This commit is contained in:
Revela 2026-03-15 09:03:54 -05:00
parent 9c01398cd4
commit 20e237dfaf

View file

@ -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()