官术网_书友最值得收藏!

  • PhoneGap By Example
  • Andrey Kovalenko
  • 320字
  • 2021-07-16 20:36:40

The installation of Sencha Touch

Download the free Sencha Touch SDK (http://www.sencha.com/products/touch/download/) and Sencha Cmdr. (http://www.sencha.com/products/sencha-cmd/download) from the Sencha website.

The installation of the Sencha Touch SDK

Extract the SDK zip file somewhere you usually place your SDKs. In my case, it is /Development/touch-2.4.1. Now, we will use this folder in the future for our project-generation process.

The installation of Sencha Cmd

To get Sencha Cmd working, you should install Java Runtime Environment (http://www.oracle.com/technetwork/java/javase/downloads/index.html), Ruby, Apple Xcode for iOS packaging, Android SDK, and Android Studio for Android packaging. We got all this packages installed, except Ruby.

Not all OSes have Ruby installed. Here are the OS-specific instructions to download Ruby:

  • Windows: Download Ruby from rubyinstaller.org. Get the .exe file version of the software and install it.
  • Mac OS: Ruby is preinstalled. You can test whether Ruby is installed with the Ruby -v command.
  • Ubuntu: Use sudo apt-get install ruby2.0.0 to download Ruby.

So now, everything is ready for the Sencha Cmd installation. Extract the Cmd zip file into the temporary folder. Run the Sencha Cmd installer. All the steps in the Sencha Cmd installation are clear without any input of data, so you just need to click on the Next button several times. The installer adds the Sencha command-line tool to your path, enabling you to generate a fresh application template, among other things. In my case, it has added the following row to the ~/.bashrc file:

export PATH=/Users/cybind/bin/Sencha/Cmd/5.1.0.26:$PATH

Tip

At the time of writing the book, I used the latest available Sencha Touch SDK and Cmd packages. I got Sencha Touch SDK 2.4.1 and Sencha Cmd 5.1.0.26.

To verify that Sencha Cmd installed successfully, simply type the sencha command in the terminal. You should see output that starts like this:

$ sencha
Sencha Cmd v5.1.0.26
...

Before continuing to the application generation, we should better understand what we can use from Sencha Cmd and how it can help us.

主站蜘蛛池模板: 长汀县| 澄迈县| 池州市| 富阳市| 泗阳县| 泰州市| 志丹县| 瓦房店市| 谢通门县| 寻乌县| 襄垣县| 随州市| 威信县| 富阳市| 响水县| 五大连池市| 北川| 来安县| 泉州市| 鞍山市| 邯郸县| 海伦市| 来安县| 自贡市| 新源县| 满城县| 南雄市| 佛山市| 昭苏县| 泗洪县| 渝中区| 北票市| 昌江| 甘孜| 慈溪市| 渝中区| 广宁县| 渝北区| 富川| 贡嘎县| 怀集县|