mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
trying to fix appveyor not zipping
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user