From d5f486a79da0f65f4dcae000901d894080f4f4b3 Mon Sep 17 00:00:00 2001 From: amaitland Date: Fri, 6 Oct 2017 17:53:23 +1000 Subject: [PATCH] Move Write-Diagnostic function dec up higher so it's accessible for the branch on tag code --- build.ps1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/build.ps1 b/build.ps1 index 5a858f3..b6f0db9 100644 --- a/build.ps1 +++ b/build.ps1 @@ -26,6 +26,18 @@ $Cef32vcx = Join-Path (Join-Path $Cef32 'libcef_dll_wrapper') 'libcef_dll_wrappe $Cef64 = Join-Path $WorkingDir 'cef_binary_3.y.z_windows64' $Cef64vcx = Join-Path (Join-Path $Cef64 'libcef_dll_wrapper') 'libcef_dll_wrapper.vcxproj' +function Write-Diagnostic +{ + param( + [Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)] + [string] $Message + ) + + Write-Host + Write-Host $Message -ForegroundColor Green + Write-Host +} + # Set CefVersion based on tag name - must start with leading "v" e.g. v3.3163.1663.g416ffeb if ($env:APPVEYOR_REPO_TAG -eq "True") { @@ -66,18 +78,6 @@ function Invoke-BatchFile Remove-Item $batFile } -function Write-Diagnostic -{ - param( - [Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)] - [string] $Message - ) - - Write-Host - Write-Host $Message -ForegroundColor Green - Write-Host -} - function Die { param(