-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
43 lines (27 loc) · 1.32 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
=== Install the SDK ===
Download and Install Sencha SDK tools.
http://www.sencha.com/products/sdk-tools/download/
On Linux:
chmod +x SenchaSDKTools-2.0.0-beta3-linux.run
sudo SenchaSDKTools-2.0.0-beta3-linux.run
=== Download ExtJs ===
Download Ext JS 4.1 from http://www.sencha.com/products/extjs/download,
and unzip it in the current dir (examples/app/simple/extjs-4.1.0).
=== Build ===
To be able to build the simple-dev.html and app.js files need to point
to the local Ext JS installation:
- edit simple-dev.html, comment out the script tag that points to
"http://cdn.sencha.io/ext-4.1.0-gpl/ext-debug.js", and uncomment
the one that points to "extjs-4.1.0/ext-debug.js".
- edit app.js and in the Loader config replace
"http://cdn.sencha.io/ext-4.1.0-gpl/src" by "extjs-4.1.0/src".
You can now update (or create) the build profile:
/opt/SenchaSDKTools-2.0.0-beta3/sencha create jsb -a simple-dev.html -p simple.jsb3
If the command runs forever it means that simple-dev.html or app.js still
reference cdn.sencha.io.
The simple.jsb3 file is used as input and output, if it doesn't exist a new
file will be created.
Now build the application:
/opt/SenchaSDKTools-2.0.0-beta3/sencha build -d . -p simple.jsb3
Note that the build includes Ext JS, GeoExt and the application code.
OpenLayers is not included in the build.