mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 00:22:57 +00:00
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:
parent
9c01398cd4
commit
20e237dfaf
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue