cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
Subject [2/2] git commit: CB-7578 Windows. Fix platform name reported by pre_package hook
Date Thu, 18 Sep 2014 08:51:51 GMT
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/master
Commit: 0f8972424c832377b3f4d73c47b02cfbd2fff025
Parents: 0ca0fad
Author: sgrebnov <v-segreb@microsoft.com>
Authored: Thu Sep 18 12:50:37 2014 +0400
Committer: sgrebnov <v-segreb@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();


Mime
View raw message