mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
Update postbuild.ps1
fix if matching
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user