Setting up your Architect Touch projects to be used with SDK Tools v2 beta 3
First let me state that SDK Tools is under rapid development and this means 2 things
1. You'll be getting a more useful command line build tool that has less bugs
2. Architect will lag behind a bit in terms of support for SDK Tools so it can stabilize.
Currently the Package and Simulate (touch only) features in Architect support SDK Tools V2 Beta 2
Warning: Package doesn't work from Architect with beta 3 the command has changed from sencha package to sencha package build
With that said I don't suggest you wait to try out the new Beta 3 features of the Tools and so with that in mind here are the steps to make your Architect projects work well with the newest SDK Tools
Install SDK Tools V2 Beta 3
open a fresh command line interface (terminal, iterm, cmd.exe, etc ...)
Don't try to run it just anywhere as you might now get a node.js error
Download the Touch 2.x SDK
unzip the SDK
cd into that directory
running sencha should get you here http://cl.ly/0x1r3r1x3r011V0C2320
$ sencha app create st2 ../st2
now we'll take this newly created app directory and harvest some of the good bits
$ cd ../st2
$ ls -la
note the .senchasdk file
Now let's pretend we have a project folder created with Architect (touch of course) located at
cp .senchasdk ~/Code/citybars/
cp app.json ~/Code/citybars/
cp -r sdk/ ~/Code/citybars/
cp -r resources/ ~/Code/citybars/
cp index.html ~/Code/citybars/
Now you should be able to cd ~/Code/citybars
$ ls -la
should work just fine now with no [WARN]
Rest assured when SDK Tools stabilize we will be making the integration and improving the experience greatly
Things should be added and there is a need for a final document on deployment I think
When following these instructions I indeed can get things to deploy.
However, there are still links for example in the app.html and index.html to /sencha-touch-2.0.1/sencha-touch-all-debug.js and sencha-touch-2.0.1/resources/css/sencha-touch.css
These should be changed before final deploy.
Also if you do not compress everything first (or do a build first) like mentioned here: http://docs.sencha.com/touch/2-0/#!/guide/command
you end up with a very sluggish app on your iOS device.
Or am I wrong ?