Skip to content

Commit d5f486a

Browse files
committed
Move Write-Diagnostic function dec up higher so it's accessible for the branch on tag code
1 parent ec3c823 commit d5f486a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

build.ps1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ $Cef32vcx = Join-Path (Join-Path $Cef32 'libcef_dll_wrapper') 'libcef_dll_wrappe
2626
$Cef64 = Join-Path $WorkingDir 'cef_binary_3.y.z_windows64'
2727
$Cef64vcx = Join-Path (Join-Path $Cef64 'libcef_dll_wrapper') 'libcef_dll_wrapper.vcxproj'
2828

29+
function Write-Diagnostic
30+
{
31+
param(
32+
[Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
33+
[string] $Message
34+
)
35+
36+
Write-Host
37+
Write-Host $Message -ForegroundColor Green
38+
Write-Host
39+
}
40+
2941
# Set CefVersion based on tag name - must start with leading "v" e.g. v3.3163.1663.g416ffeb
3042
if ($env:APPVEYOR_REPO_TAG -eq "True")
3143
{
@@ -66,18 +78,6 @@ function Invoke-BatchFile
6678
Remove-Item $batFile
6779
}
6880

69-
function Write-Diagnostic
70-
{
71-
param(
72-
[Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
73-
[string] $Message
74-
)
75-
76-
Write-Host
77-
Write-Host $Message -ForegroundColor Green
78-
Write-Host
79-
}
80-
8181
function Die
8282
{
8383
param(

0 commit comments

Comments
 (0)