- Rhomobile Beginner's Guide
- Abhishek Nalwaya
- 465字
- 2021-04-02 18:52:46
Time for action – Build it for different smart phones
It's time to make the first build for our application and see the magic that the Rhogen command has done. We will build our employee application for iPhone, Android, and Blackberry.
Let's go to the application directory and build it for iPhone, Blackberry, Android, and Windows phone:
$ cd employee_application
We will now learn about the rake command, which will help us when building our application. To get all the options available with the rake command, go to your application directory and type:
rake -T
You will get a list of all the options available with rake command:
rake clean:android # Clean Android rake clean:bb # Clean bb rake clean:iphone # Clean iphone rake clean:win32 # Clean win32 rake clean:wm # Clean wm rake clobber_rdoc # Remove rdoc products rake config:checkbb # Check local blackberry configuration rake device:android:debug # Build debug self signed for device rake device:android:production # Build production signed for device rake device:bb:debug # Build debug for device rake device:bb:production # Build production for device rake device:iphone:production # Builds and signs iphone for production rake device:wm:production # Build production for device or emulator rake package:bb:production_sim # Package all production (all parts in one ... rake run:android # build and launch emulator rake run:android:device # build and install on device rake run:bb # Builds everything, loads and starts bb si... rake run:bb:startsim # Start Blackberry simulator rake run:bbapp # Builds everything and loads application o... rake run:bbdev # Same as run:bb, but only supports one app... rake run:iphone # Builds everything, launches iphone simulator rake run:win32 # Run win32 rake run:wm # Build and run on WM6 emulator rake run:wm:cab # Build, install .cab and run on WM6 emulator rake run:wm:device # Build and run on the Windows Phone rake run:wm:device:cab # Build, install .cab and run on the Windo... rake uninstall:android # uninstall from emulator rake uninstall:android:device # uninstall from device
Now, we will use the following commands for building the application for different phones:
- For building it for iPhone, we will use the following command and then our employee application will start in an iPhone simulator:
$ rake run:iphone
- For building it for Blackberry, we will use the following command and then our employee application will start in the Blackberry simulator:
$rake run:bb
- For building it for Android we will use the following command and then our employee application will start in the Android simulator:
$rake run:android
- To build it for other phones we can use the following commands:
- Windows Mobile
rake run:wm
- Windows 7
rake run:wp
- Windows Mobile
推薦閱讀
- ANSYS19.0實例詳解
- AutoCAD 2020中文版從入門到精通(標準版)
- 從零開始:Flash CS6中文版基礎培訓教程
- 畫筆圣經 Photoshop專業繪畫技法
- IT Inventory and Resource Management with OCS Inventory NG 1.02
- 新編 中文版Photoshop入門與提高
- 正則表達式必知必會(修訂版)
- 虛擬現實:沉浸于VR夢境
- WCF Multi/tier Services Development with LINQ
- MATLAB在日常計算中的應用
- 寫給大家看的PPT設計書(第2版)
- Creo 4.0中文版基礎教程
- jQuery UI 1.6: The User Interface Library for jQuery
- Implementing SugarCRM
- AutoCAD 2018實用教程