- 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
推薦閱讀
- Excel圖表與表格實戰技巧精粹
- Protel DXP 2004 SP2原理圖與PCB設計(第4版)
- 數碼攝影后期高手之路(第2版)
- Python Text Processing with NLTK 2.0 Cookbook: LITE
- UG NX 12.0實例寶典
- ASP.NET MVC 2 Cookbook
- After Effects CC 2019 影視后期特效合成案例教程
- PowerPoint 2019從入門到精通(移動學習版)
- SolidWorks 2018有限元:運動仿真與流場分析自學手冊
- Python Testing: Beginner's Guide
- UG NX 9中文版從入門到精通
- 中文版After Effects CC 2018 動漫、影視特效后期合成秘技
- 陌上花開:古風CG插畫繪制技法精解(花卉篇)
- 3D打印輕松實踐:從材料應用到三維建模
- 無師自通AutoCAD 2014中文版機械設計