cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [01/19] git commit: added getPackageFamilyName utility function
Date Thu, 06 Jun 2013 22:26:58 GMT
Updated Branches:
  refs/heads/master 376145b35 -> be415141b


added getPackageFamilyName utility function


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/93cbfd50
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/93cbfd50
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/93cbfd50

Branch: refs/heads/master
Commit: 93cbfd5097b020b97a2e04179670b58fe8004994
Parents: 376145b
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri May 31 14:02:27 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri May 31 14:02:27 2013 -0700

----------------------------------------------------------------------
 windows8/template/cordova/lib/deploy.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/93cbfd50/windows8/template/cordova/lib/deploy.js
----------------------------------------------------------------------
diff --git a/windows8/template/cordova/lib/deploy.js b/windows8/template/cordova/lib/deploy.js
index 29a3f7d..5422812 100644
--- a/windows8/template/cordova/lib/deploy.js
+++ b/windows8/template/cordova/lib/deploy.js
@@ -246,6 +246,11 @@ function build(path) {
     }
 }
 
+function getPackageFamilyName(srcId) {
+    var outShell = wscript_shell.Exec('powershell -executionpolicy bypass -Command write-output((Get-AppxPackage
' + srcId + ').PackageFamilyName)');
+    var result = outShell.StdOut.ReadAll();
+    return result;
+}
 
 if (args.Count() > 0) {
     // support help flags


Mime
View raw message