简体   繁体   English

如何将Tizen应用程序部署到Tizen仿真器?

[英]How do I deploy a Tizen application to the Tizen emulator?

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. 我看到Tizen有智能开发桥 (sdb,类似于Android的adb),但它没有像Android Debug Bridge在Android上的'install'命令。

Can someone give me the steps to deploy/execute a Tizen application on the Tizen emulator? 有人可以给我在Tizen仿真器上部署/执行Tizen应用程序的步骤吗?

I want to be able to do this outside of the Tizen development environment (these steps are required by QA). 我希望能够在Tizen开发环境之外执行此操作(QA需要这些步骤)。

For web applications (widgets: 对于Web应用程序(小部件:

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 ::

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

or using webtizen: 或使用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

native-install -p your.tpk

using sdb: 使用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 您可以在Preferences> Tizen SDK> Web> Launch中查看eclipse用于部署应用程序的所有命令

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. 这就是eclipse的做法。 Hope it'll help 希望它会有所帮助

since 2.0a there is CLI for this. 从2.0a开始就有CLI。 I will describe how to use 2.0 released in 2012: C:\\tizen-sdk\\tools\\ide\\bin\\ there are CLI tools. 我将描述如何使用2012年发布的2.0:C:\\ tizen-sdk \\ tools \\ ide \\ bin \\有CLI工具。 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) 你需要web-install和web-run 1. intall app web-install.bat -w tizenapp.wgt 2运行已安装的应用程序:web-run -i XXXXXX其中XXX是aplication id(在你的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 对于本机应用程序(tpk),可以使用本机安装和本机运行的相同工具在此工具的文档中查看更多内容https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming% 2Fhtml%2Fide_sdk_tools%2Fcommand_line_interface.htm

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

第二个命令对我不起作用,sdb无法识别wrt-installer

With Tizen SDK 2.3.1 & above. 使用Tizen SDK 2.3.1及以上版本。 We can install/uninstall widgets/Apps with 我们可以安装/卸载小部件/应用程序

sdb install Application.wgt

sdb uninstall Application.wgt

sdb is like android adb shell utility. sdb就像android adb shell实用程序。 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. 转到安装/可用的目录,并将其与您的小部件路径一起运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM