Skip to content

Commit

Permalink
Check if APPVEYOR_BUILD_VERSION set and use that as nupkg version
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Nov 13, 2014
1 parent 0baf003 commit 4c69063
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
environment:
VisualStudioVersion: 11.0

version: 37.0.0.CI{build}
version: 37.0.0-CI{build}

shallow_clone: true

Expand Down
7 changes: 6 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param(
[Parameter(Position = 0)]
[string] $Target = "nupkg",
[Parameter(Position = 1)]
[string] $Version = "37.0.0-pre02",
[string] $Version = "37.0.0-pre01",
[Parameter(Position = 2)]
[string] $AssemlyVersion = "37.0.0",
[Parameter(Position = 3)]
Expand All @@ -14,6 +14,11 @@ $WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition

$CefSln = Join-Path $WorkingDir 'CefSharp3.sln'

if (Test-Path Env:\APPVEYOR_BUILD_VERSION)
{
$Version = Env:\APPVEYOR_BUILD_VERSION
}

# https://github.com/jbake/Powershell_scripts/blob/master/Invoke-BatchFile.ps1
function Invoke-BatchFile
{
Expand Down

0 comments on commit 4c69063

Please sign in to comment.