cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [04/19] git commit: install the app when building
Date Thu, 06 Jun 2013 22:27:01 GMT
install the app when building


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

Branch: refs/heads/master
Commit: 11f134ed1201dc10d973693d8791d71bff54b877
Parents: 25ec028
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri May 31 16:03:34 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri May 31 16:03:34 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/11f134ed/windows8/template/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/windows8/template/cordova/lib/build.js b/windows8/template/cordova/lib/build.js
index 5cc0533..ff4d9fc 100644
--- a/windows8/template/cordova/lib/build.js
+++ b/windows8/template/cordova/lib/build.js
@@ -104,11 +104,14 @@ function build_appx(path,isRelease) {
         {
             var subFolder = subFolders.item();
             var files = new Enumerator(subFolder.Files);
+            // TODO: there could be multiple .appx files
             for(;!files.atEnd();files.moveNext())
             {
                 if(fso.GetExtensionName(files.item()) == "appx")
                 {
-                    Log("BUILD SUCCESS.");
+                    Log("\n\n\n\nBUILD SUCCESS. " + files.item() + "\n\n");
+                    exec_verbose("PowerShell Add-AppxPackage " + files.item());
+                    Log("\n\n\n\nInstall SUCCESS.\n\n\n\n");
                     return;  
                 }
             }


Mime
View raw message