Update postbuild.ps1

fix if matching
This commit is contained in:
BlueBlock
2023-03-31 11:02:49 -04:00
parent 9957282bfa
commit 6d4d60e3b1

View File

@@ -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"