Use null for unset build number (close #565)
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user