index.md 3.1 KB


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.

title: Ubuntu 平台指南

toc_title: Ubuntu

Ubuntu 平台指南

初始版本

欢迎来到科尔多瓦 Ubuntu 平台支援的初始版本。 此版本中,重点是在 Ubuntu 的系统上开发和使用概述中讨论的跨平台工作流。 这包括将 Ubuntu 平台添加到您的专案,添加标准科尔多瓦外挂程式,以及建设和运行的 Ubuntu 平台的应用程式。

Ubuntu SDK

您还可能想要安装 Ubuntu QtCreator 开发环境。 请参阅developer.ubuntu.com为更多的资讯。 (QtCreator SDK 不是需要将 Ubuntu 平台支援添加到应用程式科尔多瓦。)

Ubuntu 运行时平台

Ubuntu 是众所周知的其桌面环境 (用于笔记本电脑、 Pc 和此类)。 Ubuntu 触摸延伸到手机和平板电脑上的 Ubuntu 作业系统。 Ubuntu 运行时平台有不同的 CPU 体系结构 (x 86,armhf,等.)。 必须适当地编译外挂程式和应用程式代码。 对此广泛领域的支援正在迅速演变在 Ubuntu 中。

最新资讯

科尔多瓦 app 支援 Ubuntu 运行时平台的最新资讯,请参阅wiki.ubuntu.com/Cordova.

发展平台要求

此初始发行版本的开发平台应该是 Ubuntu 桌面。Ubuntu 13.10 (代号 '暧昧') 或更高版本需要享受完整的支援的功能集。

你可以安装科尔多瓦非 Ubuntu 使用在系统上 (故宫),但重要的能力,在这个时候只提供通过 Ubuntu debian 套装软体。

科尔多瓦安装

添加到您的 Ubuntu 系统 Ubuntu 科尔多瓦个人包存档

$ sudo add-apt-repository ppa:cordova-ubuntu/ppa
$ sudo apt-get update

安装科尔多瓦 cli 包 (和它的依赖项):

$ sudo apt-get install cordova-cli

专案工作流

创建一个专案

创建一个应用程式在 hello 目录的显示名称是 HelloWorld

$ cordova create hello com.example.hello HelloWorld

移动到专案目录

$ cd hello

添加 Ubuntu 平台

$ cordova platform add ubuntu

Ubuntu 的生成

$ cordova build ubuntu

运行应用程式

$ cordova run ubuntu

添加观景窗外挂程式

$ cordova plugin add cordova-plugin-camera