How do I create a production build/minified scripts for Sencha Touch app? - sencha-touch-2

There doesn't seem to be documentation on how to build a production mode app for ST2 using Sencha Cmd utility on their web site anywhere. Can anyone point me in the right direction?

There is no difference in command to build your app between SDK Tools and Sencha Cmd:
To build your app for testing:
sencha app build testing
To build your app for production deployment:
sencha app build production
To package your application for distribution on App Stores:
sencha app build native

Here's the building documentation but which seems to be outdated:
http://docs.sencha.com/touch/2.2.0/#!/guide/building
#Eli is it still necessary to create the JSB file first which checks which classes are needed? In the Sencha Doc it says thats needed and should be done like this:
sencha create jsb -a index.html -p app.jsb3
and then the the app will be built from it:
sencha build -p app.jsb3 -d ./
Does anyone know whether the JSB-step is necessary? I'm on Sencha Touch 2.2.0

Related

Create Sencha Touch Application on Mac

I am trying to create an application on Senhcha Touch on Mac and Use it on XCode.
I am using Sencha CMD : 6.0.1.76
Sencha Touch Framework: 2.4.1
Cordova On Mac : 5.2.0
When I am generating new app using terminal it is not generating app correctly.
It throws "touch" and "build" folder out of application directory.
I have created a small video for what actually is happening with me, please check this : https://mega.nz/#!a9ZzFADT!SFKa3KAfGqlloOM7L-9OrSHIeWKGTCqCiXKbJnRrG8A
Please suggest on this..
Use Sencha CMD 5 version, It will work.
You probably have the hidden .sencha folder one directory level up from the folder you intend to be the app. try to open the folder containing your app folder in a code editor and view the contents you will probably see it.
sencha -sdk path/to/touch-0.0.0 generate app AppName path/to/appname

Sencha cmd build error

I am struggling for building a Sencha application so need ideas how to build it quickly. I will give you some background about the issue.
I am working on a hybrid app which is built on sencha framework . The app is ready for deployment. This package will be used to upload it in phonegap to create ipk/apk files.
Problem : I got stuck in building process of application. As per sencha touch documentation, we can do it by running following this command:
Sencha app build package
However getting a compile error stating ruby dependency. I Installed ruby however the error still persists.
I suppose I am having conflicts with the Sencha tools versions. I tried with Sencha CMD 2.0.0 and Sencha touch 2.0.1.1 versions but nothing happened. Then I upgraded both of them to Sencha CMD 5.0 and Sencha touch 2.3.1 but same results.
Questions:
1. Do we require anything else except Sencha CMD and Sencha touch?
2. How to upgrade application to latest versions?
Idk if my answer will take you in the right direction or not but when I first started and wanted to make changes with stuff involving ruby I had to use the CMD with ruby that gets installed when you install ruby. Its pretty much the same everything but supports ruby. I couldnt do a lot of things in the regular CMD.
please specify more detail i am not getting but if you want to upgrade your app use first go to your application path and type "sencha app upgrade"

how to Deploy the sencha touch app to iOS app in windows7

I'm using sencha touch 2.2.1
I have doubt to config a sencha app to iOS app in windows7.
I already deployed the sencha touch app to android app its works well. My problem is I don't have MAC-OS. so, can I deploy sencha app to iOS app in windows7 alone with apple-ID, certificate path and key values in sencha config file.
pls anyone tell me thanks in advance...
This should work. Just set up a packager.json file as it is described here and use sencha app build native in your command line to build your native iOS app.
If it does not work you could use the PhoneGap-Cloud-Build-Service. You'll find information about how to set up cordova / phonegap in this video.
You will need to build all your apps in XCode 5 from February 1st which will require a mac.
source: https://developer.apple.com/ios7/
I saw this service yesterday which I haven't looked into myself, but may allow you to compile apps in the cloud using one of their macs, rather than have to buy one yourself at great cost : http://www.macincloud.com/

sencha generate app doesn't work

I downloaded sencha touch
and extracted into a folder.
And then I downloaded the sdk tool
and installed it.
Used windows 7 cmd, cd to the sencha touch folder, and then run sencha generate app myapp ../myapp,
then it shows a red error message "The current working directory is not a valid SDK directory. Please 'cd' into a SDK directory before executing this command."
If you are using Sencha SDK 2.1.0, you have to use the Sencha CMD instead of Sencha SDK Tools.
Here is the system setup documentation for Sencha CMD:
http://docs.sencha.com/touch/2-1/#!/guide/command

Sencha Cmd V3 Beta

I would like to have an ext app and a touch app within a single workspace. I generated the workspace with:
$ sencha -sdk path/to/ext4.1.1a generate workspace path/toworkspace
This generated:
workspace/.sencha
workspace/ext
I can then generate an ext app, but not a touch app.
I have tried to generate the touch app like so:
$ sencha -sdk path/to/touch2.0.1.1 generate app path/totouchapp
I get an error:
"Failed to determine framework name. Please ensure this command was issued from either a framework or application directory"
So, I also tried to generate the touch app by cd'ing to my touch2.0.1.1 sdk, but that did not work either.
What am I doing wrong?
The latest Cmd tool isn't compatible with older versions of Sencha Touch. You need to install the latest SDK for it to work, apparently.
Per this thread in sencha forums:
Wrong Touch SDK!
I was using the wrong Touch SDK. Found the correct one here:
http://www.sencha.com/forum/announcement.php?f=89
I guess I just learn the proper way
you have to download the sencha touch SDK (SenchaCmd-3.0.0.250-windows.exe.zip) and install it, and of course you have to download the sencha touch framework (sencha-touch-2.1.0-gpl.zip).
you have to CD (change directory) on the sencha touch framework in my case it is under: d:\webdav\htdocs\touch and apply command: sencha generate app gs d:\webdav\htdocs\gs
I also try this command: sencha -sdk D:\webdav\htdocs\touch generate workspace D:\webdav\htdocs\gs and it works. No more error as the earlier posts.
thanks all!
the name has to be the same thing as it is after the generate such like this
Senchacmd → sencha -sdk c:\wamp\www\touch2.0.1.1 generate app MyApp c:\wamp\www\MyApp