license: >
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
本指南介绍了如何设置您的 SDK 开发环境部署Cordova运行 Tizen 作业系统的设备的应用程式。
Tizen SDK 需要 Linux Ubuntu 10.04/10.10/11.04/11.10 (32 位) 或 Windows XP SP3/7 (32 位)。
开发人员应使用 cordova
实用程式 Tizen SDK 的结合。 命令列介面资讯,请参阅如何安装它,添加专案,然后生成和部署专案。
从tizen.org下载 Tizen SDK.
推出 Tizen Eclipse IDE。
选择档 → 导入 → Tizen Web 专案:
![][2]
按下一步.
请确保选中了选择根目录。
请确保选中了复制到工作区中的专案。
按流览并选择Cordova Tizen samples
专案目录 (如 /cordova-basic
):
![][3]
按完成。您的专案现在应该将其导入并出现在专案资源管理器视图中:
![][4]
[2]: {{ site.baseurl }}/static/img/guide/platforms/tizen/import_project.png [3]: {{ site.baseurl }}/static/img/guide/platforms/tizen/import_widget.png [4]: {{ site.baseurl }}/static/img/guide/platforms/tizen/project_explorer.png
重新生成专案,在专案资源管理器视图中按右键并选择生成专案:
![][5]
[5]: {{ site.baseurl }}/static/img/guide/platforms/tizen/build_project.png
如*hello.wgt*的小部件包档应在专案的根目录中生成。
用滑鼠右键按一下专案资源管理器视图中的专案并选择运行作为 → Tizen Web 模拟器应用程式:
![][6]
[6]: {{ site.baseurl }}/static/img/guide/platforms/tizen/runas_web_sim_app.png
请确保目标设备正常启动、 连接和配置。必须正确设置其日期和时间设置。
使用连接资源管理器视图选择的应用程式部署目标:视窗显示视图 → 连接资源管理器.
![][7]
用滑鼠右键按一下该专案在专案资源管理器视图,然后选择运行作为 → Tizen Web 应用程式:
![][8]
[7]: {{ site.baseurl }}/static/img/guide/platforms/tizen/connection_explorer.png [8]: {{ site.baseurl }}/static/img/guide/platforms/tizen/runas_web_app.png