From 0110b7e97ffd1ccf8e7110ab6b8dc3db9c83e6f7 Mon Sep 17 00:00:00 2001 From: Doug Hennig Date: Sat, 9 Apr 2022 08:21:27 -0500 Subject: [PATCH] Updated PowerShell script to use a better zipping mechanism --- ThorUpdater/CreateThorUpdate.ps1 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ThorUpdater/CreateThorUpdate.ps1 b/ThorUpdater/CreateThorUpdate.ps1 index 202b382..c461a87 100644 --- a/ThorUpdater/CreateThorUpdate.ps1 +++ b/ThorUpdater/CreateThorUpdate.ps1 @@ -1,7 +1,3 @@ -# Import the Powershell Community Extensions add-on module. -#Import-Module PSCX -Import-Module Pscx -Prefix Pscx - # Get the project settings from Project.txt $appInfo = Get-Content Project.txt $appName = $appInfo[0].Substring($appInfo[0].IndexOf('=') + 1).Trim() @@ -44,7 +40,7 @@ try if ($allowed) { $_ } - } | Write-Zip -OutputPath $zipFileName + } | Compress-Archive -CompressionLevel "Fastest" -DestinationPath $zipFileName # If the zip file was created, read in the Version source file, replace @@ -64,12 +60,14 @@ try else { Write-Host "Zip creation failed" + pause } } catch { Write-Host "Error occurred at $(Get-Date): $($Error[0].Exception.Message)" + pause } finally