How do I deploy a Tizen application to the Tizen emulator?

我与影子孤独终老i 提交于 2019-12-05 13:18:18

For web applications (widgets:

sdb push app.wgt /tmp/Application.wgt
sdb shell wrt-installer -i /tmp/Application.wgt

For widgets using Command Line Interface tools web-install::

web-install -w Application.wgt -i application_uri_id.org

or using webtizen:

webtizen install -w Application.wgt -i application_uri_id.org

For native packages:

sdb push your.tpk /opt/apps/PKGS/Application.tpk
sdb shell pkgcmd -q -i -t tpk -p /opt/apps/PKGS/Application.tpk

For native using Command Line Interface tools native-install:

native-install -p your.tpk

using sdb:

sdb install /home/user/your.tpk 
sdb push app.wgt /sdcard/app.wgt
sdb shell wrt-installer -i /sdcard/app.wgt

You can see all the commands that eclipse uses to deploy applications in Preferences > Tizen SDK > Web > Launch

sdb push your.tpk /opt/apps/PKGS/your.tpk
sdb shell pkgcmd -q -i -t tpk -p /opt/apps/PKGS/your.tpk

This is how eclipse do it. Hope it'll help

since 2.0a there is CLI for this. I will describe how to use 2.0 released in 2012: C:\tizen-sdk\tools\ide\bin\ there are CLI tools. You need web-install and web-run 1. intall app web-install.bat -w tizenapp.wgt 2 Run installed application: web-run -i XXXXXX where XXX is aplication id(find it in your config.xml)

For native applications (tpk) same tools available native-install and native-run see more in documentation on this tools https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fide_sdk_tools%2Fcommand_line_interface.htm

Subbu
  1. sdb push app.wgt /tmp/Application.wgt
  2. sdb shell wrt-installer -i /tmp/Application.wgt

Second command is not working for me, wrt-installer is not recognised by sdb

With Tizen SDK 2.3.1 & above. We can install/uninstall widgets/Apps with

sdb install Application.wgt

sdb uninstall Application.wgt

sdb is like android adb shell utility. If its not available on the system path. Go to the directory where it is installed/available and run it along with the path to you widget.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!