Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1138450 - Add version fields to built manifest.webapp files. r=ri…
Browse files Browse the repository at this point in the history
…ckychien
  • Loading branch information
Zibi Braniecki committed Mar 10, 2015
1 parent f02ae51 commit 7fdef69
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/post-manifest.js
Expand Up @@ -55,7 +55,16 @@ function execute(options, webapp) {
if (manifestContent.connections) {
manifestContent =
manifestInterAppHostnames(manifestContent, options);
utils.writeContent(stageManifest, JSON.stringify(manifestContent));
}

// Get the Gaia version and set it as an app version in manifest.webapp.
// It's used by Langpack API
var settingsFile = utils.getFile(options.GAIA_DIR, 'build', 'config',
'common-settings.json');
var settings = utils.getJSON(settingsFile);

manifestContent.version = settings['moz.b2g.version'];

utils.writeContent(stageManifest, JSON.stringify(manifestContent));
}
exports.execute = execute;

0 comments on commit 7fdef69

Please sign in to comment.