trying to fix appveyor not zipping

This commit is contained in:
Faryan Rezagholi
2021-08-14 13:26:35 +02:00
parent 954c667173
commit 7eb85c6a3d

View File

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