From 727ef34c6d54c33e524dedb97b45bc9dfd96bc6d Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sat, 14 Aug 2021 13:46:43 +0200 Subject: [PATCH] appveyor build script fixes --- Tools/zip_files.ps1 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Tools/zip_files.ps1 b/Tools/zip_files.ps1 index be4355e1..8baa0673 100644 --- a/Tools/zip_files.ps1 +++ b/Tools/zip_files.ps1 @@ -22,10 +22,8 @@ Write-Output "Version is $($version)" # Fix for AppVeyor if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) { - If(!(test-path "Release")) - { - New-Item -ItemType Directory -Force -Path $path | Out-Null - } + if(!(test-path "Release")) + New-Item -ItemType Directory -Force -Path "Release" | Out-Null } # Package debug symbols zip file @@ -46,7 +44,7 @@ if ($ConfigurationName -match "Release") { $outputZipPath = "Release\$zipFilePrefix-$($version).zip" } - Write-Output "Creating debug symbols ZIP file $($outputZipPath)" + Write-Output "Creating debug symbols ZIP file $($outputZipPath) from $($debugFile)" Compress-Archive $debugFile $outputZipPath -Force } @@ -67,7 +65,7 @@ if ($ConfigurationName -eq "Release Portable") { $FileExclude = @("*.pdb") $Source = Get-ChildItem -Recurse -Path $TargetDir -Exclude $FileExclude - Write-Output "Creating portable ZIP file $($outputZipPath)" + Write-Output "Creating portable ZIP file $($outputZipPath) from $($Source)" Compress-Archive $Source $outputZipPath -Force }