build with the branch version

pull/1510/head
tidusjar 7 years ago
parent 956b4f6697
commit 23efcd3dce

@ -8,7 +8,7 @@ install:
# Get the latest stable version of Node.js or io.js # Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version - ps: Install-Product node $env:nodejs_version
build_script: build_script:
- ps: ./build.ps1 --settings_skipverification=true -Verbosity Diagnostic - ps: ./build.ps1 --settings_skipverification=true
after_build: after_build:
- cmd: >- - cmd: >-

@ -83,7 +83,15 @@ Task("SetVersionInfo")
Information(@"Build:{0}",AppVeyor.Environment.Build.Dump()); Information(@"Build:{0}",AppVeyor.Environment.Build.Dump());
var fullVer = AppVeyor.Environment.Build.Version; var buildVersion = string.Empty;
if(string.IsNullOrEmpty(AppVeyor.Environment.Build.Version))
{
buildVersion = "3.0.000";
} else{
buildVersion = AppVeyor.Environment.Build.Version;
}
var fullVer = buildVersion + "-" + versionInfo.BranchName;
buildSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.AssemblySemVer); buildSettings.ArgumentCustomization = args => args.Append("/p:SemVer=" + versionInfo.AssemblySemVer);

Loading…
Cancel
Save