You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/09/23 00:16:32 UTC

[40/50] [abbrv] git commit: CB-7578 Windows. Fix platform name reported by pre_package hook

CB-7578 Windows. Fix platform name reported by pre_package hook


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/0f897242
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/0f897242
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/0f897242

Branch: refs/heads/cb-7219
Commit: 0f8972424c832377b3f4d73c47b02cfbd2fff025
Parents: 0ca0fad
Author: sgrebnov <v-...@microsoft.com>
Authored: Thu Sep 18 12:50:37 2014 +0400
Committer: sgrebnov <v-...@microsoft.com>
Committed: Thu Sep 18 12:50:37 2014 +0400

----------------------------------------------------------------------
 cordova-lib/src/cordova/metadata/windows_parser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0f897242/cordova-lib/src/cordova/metadata/windows_parser.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/metadata/windows_parser.js b/cordova-lib/src/cordova/metadata/windows_parser.js
index e7a8769..733473d 100644
--- a/cordova-lib/src/cordova/metadata/windows_parser.js
+++ b/cordova-lib/src/cordova/metadata/windows_parser.js
@@ -282,7 +282,7 @@ module.exports.prototype = {
         var projectRoot = util.isCordova(process.cwd());
 
         var hooks = new hooker(projectRoot);
-        return hooks.fire('pre_package', { wwwPath:this.www_dir(), platforms: ['windows8'] })
+        return hooks.fire('pre_package', { wwwPath:this.www_dir(), platforms: [this.isOldProjectTemplate ? 'windows8' : 'windows'] })
         .then(function() {
             // overrides (merges) are handled in update_www()
             that.update_jsproj();