Search code examples
cordovasencha-touchsencha-touch-2

Difference between sencha app build -run and sencha app run?


Is there a significant difference between the commands sencha app build -run native and sencha app run native.

Looking at the documentation, it looks like run builds the app before running it.

Here it says that build -run launches it on the appropriate simulator, but I suppose if the device is connected, it just runs it on the device, so there isn't really a difference.


Solution

  • It looks that you are right. sencha help app build and sencha help app run give me almost the same amount of options and behave pretty much similar. So, I'd say that sencha app build -run native is a shorthand for sencha app run native Moreover, it totally makes sense because if you want to run your app you have to build it first.