From 7ff0ce5369c02a4765ea573a34ffdb070ce73091 Mon Sep 17 00:00:00 2001 From: Faryan Rezagholi Date: Sun, 15 Aug 2021 00:41:59 +0200 Subject: [PATCH] tring to fix 7z duplicate file error on appveyor builds --- Tools/zip_files.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tools/zip_files.ps1 b/Tools/zip_files.ps1 index c77074608..3ab1b39d9 100644 --- a/Tools/zip_files.ps1 +++ b/Tools/zip_files.ps1 @@ -68,11 +68,13 @@ if ($ConfigurationName -eq "Release Portable") { # AppVeyor build if(!([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER))) { $outputZipPath = Join-Path -Path $SolutionDir -ChildPath "Release\mRemoteNG-Portable-$($version).zip" - 7z a $outputZipPath $Source + 7z a -spf $outputZipPath $Source + } + # Local build + else { + $outputZipPath="$($SolutionDir)\Release\mRemoteNG-Portable-$($version).zip" + Compress-Archive $Source $outputZipPath -Force } - - $outputZipPath="$($SolutionDir)\Release\mRemoteNG-Portable-$($version).zip" - Compress-Archive $Source $outputZipPath -Force } Write-Output "" \ No newline at end of file