9 Jan 2013 5:48 AM #1
"sencha app build package" not reading app.json
I followed Robert Dougan's easy 1-2-3 article for using PhoneGap to wrap ST, and I'm having a problem at the step that calls the command, "sencha app build package." I changed my app.json to have:
However, after running "sencha app build package", the packaged contents are put under "build/SenchaHello/package" (SenchaHello is the project name). The output of the command verifies the same:
[INF] Successfully deployed your application to /Users/trung/Documents/Eclipse/SenchaHello/build/SenchaHello/package
I've deleted and rebuilt the project several times just to verify I hadn't mucked anything up. With regards to the ST project, I haven't made any changes other than adding the cordova.ios.js file and changing the package path, as described by Robert's article.
11 Jan 2013 12:57 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Sencha Cmd does not use the buildPaths from app.json and I believe that has been fixed to remove that data. To do this now you can open .sencha/app/build-impl.xml and around line 190 you will see the 4 different targets. In the value of the <property> you should be able to control where things are built in to.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
11 Jan 2013 2:16 PM #3
I don't see anything obvious regarding the output path for that target:
<property name="args.environment" value="package"/>
However, in .sencha/workspace/sencha.cfg, I do see this:
But I don't see any way of specifying the complete target directory--even changing workspace.build.dir to build/phonegap/www, "sencha app build package" puts the contents in build/phonegap/www/package