简体   繁体   English

是否有cordova-cli命令使用目录项目中的最新版本安装应用程序?

[英]Is there a cordova-cli command to install app using the last build in the directory project?

Does anyone know how to run cordova-cli in order to install an app that been already built ? 有谁知道如何运行cordova-cli来安装已经构建的应用程序?

Using cordova run android always cause the rebuild of the app. 使用cordova run android总是会导致应用的重建。 And its often useful but some times, its not necessary and we lost time. 它常常有用,但有时却没有必要,我们浪费了时间。

Or maybe any one know the equivalent from Adb command line interface (android) and those for ios and windows phone (I don't know it yet) ? 或者,也许有人知道Adb命令行界面(android)的等效功能以及ios和Windows Phone的等效功能(我还不知道)?

The run command has a --nobuild option which does exactly what you want. run命令具有--nobuild选项,它可以完全满足您的需求。 Hooks are still executed though so when you have hooks it might still take some time for the app to start. 挂钩仍会执行,因此当您拥有挂钩时,应用可能仍需要一些时间才能启动。

Example command for calling: cordova run android --nobuild 调用示例命令: cordova run android --nobuild

edit to answer question below 编辑以回答以下问题

You can see some documentation here: link 您可以在此处查看一些文档: 链接

For me the output shows it is skipping: 对我来说,输出显示它正在跳过:

D:\Mobile>cordova run android --nobuild
Running command: D:\Mobile\platforms\android\cordova\run.bat --nobuild
Skipping build...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM