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
Willkommen Sie bei der ersten Version von Ubuntu-Plattform-Unterstützung in Cordova. Mit dieser Version ist der Fokus auf einem Ubuntu-System entwickeln und verwenden den Cross-Plattform-Workflow diskutiert in der Übersicht. Dazu gehören die Ubuntu-Plattform auf Ihr Projekt hinzufügen von Cordova Standarderweiterungen, und erstellen und Ausführen von Anwendungen für die Ubuntu-Plattform hinzufügen.
Sie können auch die Entwicklungsumgebung Ubuntu QtCreator installieren möchten. Siehe developer.ubuntu.com für mehr Info. (Der QtCreator SDK ist nicht erforderlich, Ihre Cordova-app-Plattform-Unterstützung für Ubuntu hinzu.)
Ubuntu ist bekannt für seine Desktop-Umgebung (für Laptops, PCs und so weiter). Ubuntu Touch erweitert das Betriebssystem Ubuntu auf Handys und Tablets. Ubuntu-Runtime-Plattformen haben unterschiedliche CPU-Architekturen (X 86, Armhf, etc..). Entsprechend muss die APP und Plugin-Code kompiliert werden. Unterstützung für diesen breiten Bereich entwickelt sich rasch in Ubuntu.
Die neuesten Informationen zu Cordova app Unterstützung für Ubuntu-Runtime-Plattformen finden Sie unter wiki.ubuntu.com/Cordova.
In dieser ersten Version sollte die Entwicklungsplattform ein Ubuntu-Desktop. Ubuntu-13.10 (Codename ‘frech’) oder höher ist erforderlich, um den vollständigen Satz der unterstützten Funktionen zu genießen.
Cordova k÷nnen Sie auf nicht-Ubuntu Systemen (Npm), aber wichtige Funktionen stehen nur durch Ubuntu debian-Pakete zu dieser Zeit zur Verfügung.
Fügen Sie Ihr Ubuntu-System Ubuntu Cordova Personal Package Archive :
$ sudo add-apt-repository ppa:cordova-ubuntu/ppa $ sudo apt-get update
Cordova-Cli-Paket (und seine Abhängigkeiten) zu installieren:
$ sudo apt-get install cordova-cli
Erstellt eine Anwendung in ein hello
Verzeichnis, dessen Display-Name ist HelloWorld
:
$ cordova create hello com.example.hello HelloWorld
$ cd hello
$ cordova platform add ubuntu
$ cordova build ubuntu
$ cordova run ubuntu
$ cordova plugin add cordova-plugin-camera