From 7eb85c6a3da70eb3bec9f9e5e6dcc4c85d8cd3ff Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sat, 14 Aug 2021 13:26:35 +0200 Subject: [PATCH] trying to fix appveyor not zipping --- Tools/zip_files.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Tools/zip_files.ps1 b/Tools/zip_files.ps1 index 9776e8fd4..bd1209e3d 100644 --- a/Tools/zip_files.ps1 +++ b/Tools/zip_files.ps1 @@ -30,9 +30,14 @@ if ($ConfigurationName -match "Release") { $zipFilePrefix = "mRemoteNG-symbols" } - $outputZipPath="$($SolutionDir)Release\$zipFilePrefix-$($version).zip" + $outputZipPath = "$($SolutionDir)Release\$zipFilePrefix-$($version).zip" $debugFile = Join-Path -Path $TargetDir -ChildPath "mRemoteNG.pdb" + # Fix for AppVeyor + if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) { + $outputZipPath = "Release\$zipFilePrefix-$($version).zip" + } + Write-Output "Creating debug symbols ZIP file $($outputZipPath)" Compress-Archive $debugFile $outputZipPath -Force } @@ -45,6 +50,11 @@ if ($ConfigurationName -eq "Release Portable") { $PortableZipDst="$($SolutionDir)\Release\mRemoteNG-Portable-$($version).zip" + # Fix for AppVeyor + if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) { + $outputZipPath = "Release\mRemoteNG-Portable-$($version).zip" + } + # Excluse debug symbols from folder $FileExclude = @("*.pdb") $Source = Get-ChildItem -Recurse -Path $TargetDir -Exclude $FileExclude