mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
appveyor build script fixes
This commit is contained in:
@@ -22,10 +22,8 @@ Write-Output "Version is $($version)"
|
|||||||
|
|
||||||
# Fix for AppVeyor
|
# Fix for AppVeyor
|
||||||
if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) {
|
if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) {
|
||||||
If(!(test-path "Release"))
|
if(!(test-path "Release"))
|
||||||
{
|
New-Item -ItemType Directory -Force -Path "Release" | Out-Null
|
||||||
New-Item -ItemType Directory -Force -Path $path | Out-Null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Package debug symbols zip file
|
# Package debug symbols zip file
|
||||||
@@ -46,7 +44,7 @@ if ($ConfigurationName -match "Release") {
|
|||||||
$outputZipPath = "Release\$zipFilePrefix-$($version).zip"
|
$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
|
Compress-Archive $debugFile $outputZipPath -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +65,7 @@ if ($ConfigurationName -eq "Release Portable") {
|
|||||||
$FileExclude = @("*.pdb")
|
$FileExclude = @("*.pdb")
|
||||||
$Source = Get-ChildItem -Recurse -Path $TargetDir -Exclude $FileExclude
|
$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
|
Compress-Archive $Source $outputZipPath -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user