Make sure manifest.json contains AUTOUPDATE_VERSION (if specified) (#8480)

Fixes https://github.com/meteor/meteor/issues/8479
This commit is contained in:
Phuc Nguyen
2017-03-22 22:16:52 +07:00
committed by Jesse Rosenberger
parent 3966d7027f
commit 393fe17f4b

View File

@@ -500,8 +500,12 @@ var runWebAppServer = function () {
var program = {
format: "web-program-pre1",
manifest: manifest,
version: WebAppHashing.calculateClientHash(manifest, null, _.pick(
__meteor_runtime_config__, 'PUBLIC_SETTINGS')),
version: process.env.AUTOUPDATE_VERSION ||
WebAppHashing.calculateClientHash(
manifest,
null,
_.pick(__meteor_runtime_config__, "PUBLIC_SETTINGS")
),
cordovaCompatibilityVersions: clientJson.cordovaCompatibilityVersions,
PUBLIC_SETTINGS: __meteor_runtime_config__.PUBLIC_SETTINGS
};