From 53fac1a46934467875d398cbf2665fde0f635bb5 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Tue, 7 Jul 2020 15:36:51 -0400 Subject: [PATCH] Add flag to read buildNumber from .build. By setting ``, you can force Lime not to calculate a build number from git or svn, but instead use the default option of getting it from the .build file. Since setting this value would previously have produced useless build numbers, it's unlikely that this affects any existing builds. --- tools/CommandLineTools.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 73c1727e6..341995f76 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -1257,7 +1257,7 @@ class CommandLineTools buildNumber = getBuildNumber_SVN(project, increment); } - if (buildNumber == null) + if (buildNumber == null || buildNumber == ".build") { var versionFile = Path.combine(project.app.path, ".build"); var version = 1;