命令行下面创建Rhodes程序项目Hello World,编译并启动BlackBerry模拟器运行程序

==================================================================

启动DOS窗口,执行RhoStudio的Ruby命令创建程序模板

C:> rhogen app helloworld_application

C:> cd helloworld_application

查看build.xml,缺省bbver: 4.6,如果你要运行BlackBerry OS 5.0模拟器,那么修改4.6为5.0


下面编译项目代码为BlackBerry目标文件,启动BlackBerry模拟器,并部署程序到BlackBerry模拟器上面。

C:> rake run:bb


在模拟器的Download目录中找到这个程序,启动,发现是个网页程序,但是还有菜单!


修改程序首页index.bb.erb代码,保存,再次编译程序,再次部署程序到BlackBerry模拟器上面。

C:> rake bbapp


==================================================================

提示:

 查看RhoStudo的rake的各种指令

rake -T

rake build:symbian:rhobundle    # Build symbian rhobundle
rake build:wp:rhobundle         # Build WP7 rhobundle
rake clean:android              # Clean Android
rake clean:bb                   # Clean bb
rake clean:iphone               # Clean iphone
rake clean:motce                # Clean Motorola device build
rake clean:win32                # Clean win32
rake clean:wm                   # Clean wm
rake clean:wp                   # Clean wp
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:motce:production    # Build production for Motorola device
rake device:symbian:production  # Build production for device
rake device:wm:production       # Build production for device or emulator
rake device:wp: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 on bb simulator
rake run:bbdev                  # Same as run:bb, but only supports one app...
rake run:iphone                 # Builds everything, launches iphone simulator
rake run:rhosimulator_base      # Run application on RhoSimulator
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 run:wp                     # Build, install .xap and run on WP7 emulator
rake run:wp:device              # Build, install .xap and run on WP7 device
rake uninstall:android          # uninstall from emulator
rake uninstall:android:device   # uninstall from device

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值