Skip to content

Commit ec3c823

Browse files
committed
AppVeyor - set version based on Tag name
Logic copied from primary CefSharp build.ps1 script Tag name MUST start with leading "v" e.g. v3.3163.1663.g416ffeb
1 parent 497ba93 commit ec3c823

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ $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+
# Set CefVersion based on tag name - must start with leading "v" e.g. v3.3163.1663.g416ffeb
30+
if ($env:APPVEYOR_REPO_TAG -eq "True")
31+
{
32+
$CefVersion = "$env:APPVEYOR_REPO_TAG_NAME".Substring(1) # trim leading "v"
33+
Write-Diagnostic "Setting version based on tag to $CefVersion"
34+
}
35+
2936
# Take the cef version and strip the commit hash
3037
$CefPackageVersion = $CefVersion.SubString(0, $CefVersion.LastIndexOf('.'))
3138

0 commit comments

Comments
 (0)