One: Create a project
The Sencha SDK tool2.0 cannot create an API sencha-touch-2.2.1 project and requires senchacmd instead of the Sencha SDK tool, with the following steps:
1, download and install Senchacmd, address:
Http://www.sencha.com/products/sencha-cmd/download
2, all the way next, after installation, into CMD, typing: Sencha, showing some information about Sencha, indicating Senchacmd installation success
3, build the project using Senchacmd
3.1 Download sencha-touch-2.2.1, go to the official website to fill in the email, the mailbox will receive
3.2 After the download is complete, enter the sencha-touch-2.2.1 directory under DOS, for example: My directory is as follows:
D:\sencha\IUCD\WebRoot\TOUCH-2.2.1\
Note: Sencha cmd must be run in the SDK directory or the app directory
3.3 Use the Senchacmd command to generate the project, as follows:
Sencha Generate App Myapp/path/to/myapp
After running, it will be in D:/path/to/myapp
Two: Compile the project
The steps are as follows:
1, at the command prompt, enter the MyApp subdirectory of the disk directory after extracting the Sencha touch2.2.1 Framework's compressed package
Three forms of 2,build compilation: Production, testing, package
Testing: Build an application that is in beta, all JavaScript script files are copied to the application as is, and the script files are not compressed to facilitate debugging by the developer.
Package: Build a locally-run application that allows developers to open the application directly from the file system without using a Web server
Production: Build an application that requires a Web server to run, supports access to the application using a variety of devices, and is an application that can be used offline
Native: First build an application that can be opened directly in the file system, and then package it as an application that can run on a native Web server.
>sencha app build production//packaged mobile phone, computer-side can be used in the form
>sencha app Build testing//Packaged Beta
>sencha App Build Package//pack to mobile side
>sencha Package Run Package.json//is primarily an apk for Android or iphone generation
>sencha app Build-e native
ExtJS Sencha cmd Create project and compile project