您可以使用Sencha SDK Tools构建本机应用程序。
如果您的项目结构正确,您可以使用以下命令来构建您的原生应用程序。这也将缩小您的 javascript 大小:
C:\wamp\www\SenchaApp>sencha app build -e native -d pkg/native -a archive
[INFO] Deploying your application to C:\wamp\www\SenchaApp\pkg\native
[INFO] Copied sdk/sencha-touch.js
[INFO] Copied app.js
[INFO] Copied resources/css/app.css
[INFO] Copied resources/images
[INFO] Copied resources/icons
[INFO] Copied resources/loading
[INFO] Copied resources/data
[INFO] Resolving your application dependencies...
[INFO] Found 18 dependencies. Concatenating all into app.js...
[INFO] Processed sdk/sencha-touch.js
[INFO] Minifying sdk/sencha-touch.js
[INFO] Processed app.js
[INFO] Minifying app.js
[INFO] Minifying resources/css/app.css
[INFO] Minified app.js
[INFO] Minified sdk/sencha-touch.js
[INFO] Minified resources/css/app.css
[INFO] Generated app.json
[INFO] Embedded microloader into index.html
[INFO] Packaging your application as a native app...