Use null for unset build number (close #565)

This commit is contained in:
Joshua Granick
2016-09-29 13:57:53 -07:00
parent 2263fe2807
commit b16b3c5949
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ class HXProject {
targetFlags = StringMapHelper.copy (_targetFlags);
templatePaths = _templatePaths.copy ();
defaultMeta = { title: "MyApplication", description: "", packageName: "com.example.myapp", version: "1.0.0", company: "", companyUrl: "", buildNumber: "1", companyId: "" }
defaultMeta = { title: "MyApplication", description: "", packageName: "com.example.myapp", version: "1.0.0", company: "", companyUrl: "", buildNumber: null, companyId: "" }
defaultApp = { main: "Main", file: "MyApplication", path: "bin", preloader: "", swfVersion: 11.2, url: "", init: null }
defaultWindow = { width: 800, height: 600, parameters: "{}", background: 0xFFFFFF, fps: 30, hardware: true, display: 0, resizable: true, borderless: false, orientation: Orientation.AUTO, vsync: false, fullscreen: false, allowHighDPI: true, antialiasing: 0, allowShaders: true, requireShaders: false, depthBuffer: false, stencilBuffer: false }

View File

@@ -997,7 +997,7 @@ class CommandLineTools {
private function getBuildNumber (project:HXProject, increment:Bool = true):Void {
if (project.meta.buildNumber == "1") {
if (project.meta.buildNumber == null) {
var versionFile = PathHelper.combine (project.app.path, ".build");
var version = 1;