From 6d4d60e3b164e530d5df69026da58e7f96b9e3fd Mon Sep 17 00:00:00 2001 From: BlueBlock Date: Fri, 31 Mar 2023 11:02:49 -0400 Subject: [PATCH] Update postbuild.ps1 fix if matching --- Tools/postbuild.ps1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Tools/postbuild.ps1 b/Tools/postbuild.ps1 index c8aacae0..4453b061 100644 --- a/Tools/postbuild.ps1 +++ b/Tools/postbuild.ps1 @@ -41,12 +41,6 @@ Format-Table -AutoSize -Wrap -InputObject @{ } -Write-Output ($ConfigurationName -match "Release") -Write-Output ($env:APPVEYOR_PROJECT_NAME -notcontains "(CI)") -Write-Output ([string]::IsNullOrEmpty($env:WEBSITE_TARGET_OWNER)) -Write-Output ([string]::IsNullOrEmpty($env:WEBSITE_TARGET_REPOSITORY)) - - if ( $ConfigurationName -match "Debug" -and ([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) ) { return; } #skip when Debug local developer build if ( $env:APPVEYOR_PROJECT_NAME -match "(CI)" -and -not ([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) ) { return; } #skip when AppVeyor (CI) build @@ -56,7 +50,7 @@ New-Item -Path $dstPath -ItemType Directory -Force # $RunInstaller = $TargetDir -match "\\mRemoteNGInstaller\\Installer\\bin\\" # $RunPortable = ( ($Targetdir -match "\\mRemoteNG\\bin\\") -and -not ($TargetDir -match "\\mRemoteNGInstaller\\Installer\\bin\\") ) -if ( ($ConfigurationName -match "Release") -and ($env:APPVEYOR_PROJECT_NAME -notcontains "(CI)") -and -not ([string]::IsNullOrEmpty($env:WEBSITE_TARGET_OWNER)) -and -not ([string]::IsNullOrEmpty($env:WEBSITE_TARGET_REPOSITORY)) ) { +if ( ($ConfigurationName -match "Release") -and ($env:APPVEYOR_PROJECT_NAME -notmatch "(CI)") -and -not ([string]::IsNullOrEmpty($env:WEBSITE_TARGET_OWNER)) -and -not ([string]::IsNullOrEmpty($env:WEBSITE_TARGET_REPOSITORY)) ) { Write-Output "-Begin Release Portable"