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

匿名 (未验证) 提交于 2019-12-03 08:52:47

问题:

I see Tizen has the Smart Development Bridge (sdb, similar to adb for Android), but it doesn't have an 'install' command as the Android Debug Bridge has on Android.

Can someone give me the steps to deploy/execute a Tizen application on the Tizen emulator?

I want to be able to do this outside of the Tizen development environment (these steps are required by QA).

回答1:

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 


回答2:

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



回答3:

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



回答4:

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



回答5:

  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



回答6:

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.



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