From 72193eccf05c00c247ae4dd91c647cd9c9fe4a97 Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sat, 14 Aug 2021 13:30:54 +0200 Subject: [PATCH] appveyor fix --- Tools/zip_files.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tools/zip_files.ps1 b/Tools/zip_files.ps1 index bd1209e3d..a5561628d 100644 --- a/Tools/zip_files.ps1 +++ b/Tools/zip_files.ps1 @@ -20,6 +20,15 @@ $exe = Join-Path -Path $TargetDir -ChildPath $TargetFileName $Version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($exe).FileVersion Write-Output "Version is $($version)" +# Fix for AppVeyor +if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) { + $path = "Release" + If(!(test-path $path)) + { + New-Item -ItemType Directory -Force -Path $path + } +} + # Package debug symbols zip file if ($ConfigurationName -match "Release") { Write-Output "Packaging debug symbols"