Skip to content

Commit 1056151

Browse files
committed
Distinguish a release build from a regular build - release build must not have a debug extension
1 parent 01121fb commit 1056151

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Gruntfile.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,12 @@ module.exports = function(grunt) {
124124

125125
var packageJson = grunt.file.readJSON("package.json");
126126
var versionParts = packageJson.version.split("-");
127-
versionParts[1] = buildVersion;
128-
packageJson.version = versionParts.join("-");
127+
if (process.env["RELEASE_BUILD"]) {
128+
packageJson = versionParts[0];
129+
} else {
130+
versionParts[1] = buildVersion;
131+
packageJson.version = versionParts.join("-");
132+
}
129133
grunt.file.write("package.json", JSON.stringify(packageJson, null, " "));
130134
});
131135

0 commit comments

Comments
 (0)