Skip to content

Commit c3e1f41

Browse files
Add 3.0.x branch handling to appveyor-install.ps1
1 parent 98b22f3 commit c3e1f41

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

BuildTools/appveyor-install.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ $ErrorActionPreference = "Stop"
33
$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463";
44
$baseCommitRev = 1;
55

6+
$masterBranches = @("master", "3.0.x");
7+
68
$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs";
79

810
$versionParts = @{};
@@ -18,10 +20,10 @@ if ($versionName -ne "null") {
1820
} else {
1921
$versionName = "";
2022
}
21-
if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {
22-
$branch = "-$env:APPVEYOR_REPO_BRANCH";
23-
} else {
23+
if ($masterBranches -contains $env:APPVEYOR_REPO_BRANCH) {
2424
$branch = "";
25+
} else {
26+
$branch = "-$env:APPVEYOR_REPO_BRANCH";
2527
}
2628
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
2729
$suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER";

0 commit comments

Comments
 (0)