Add flag to read buildNumber from .build.

By setting `<meta build-number=".build" />`, 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.
This commit is contained in:
Joseph Cloutier
2020-07-07 15:36:51 -04:00
parent 461a73fed3
commit 53fac1a469

View File

@@ -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;