diff --git a/doc/build_ios.md b/doc/build_ios.md index d99ec0c3603750ea4e35a3ad2ab59c3c254aa5d0..eda62e510ce9b4f4eeb223d54b386d66432848bc 100644 --- a/doc/build_ios.md +++ b/doc/build_ios.md @@ -82,7 +82,7 @@ npm install -g nw-gyp node-pre-gyp 2. Install global dependencies (see [Development Guide](./development_guide.md) for versions to used) : ``` -npm install -g gulp bower@1.8.0 cordova@6.5.0 ionic@1.7.16 +npm install -g gulp bower@1.8.8 cordova@9.0.0 ionic@1.7.16 ``` 3. Install project dependencies : diff --git a/doc/build_ubuntu.md b/doc/build_ubuntu.md deleted file mode 100644 index a2ee72468663ed050cb151cae26167b2ba0bac30..0000000000000000000000000000000000000000 --- a/doc/build_ubuntu.md +++ /dev/null @@ -1,109 +0,0 @@ -# Ubuntu Builds - -Cesium can be build as desktop application for Ubuntu, or as App on Ubuntu phone. Such builds use cross-architecture [click targets](https://developer.ubuntu.com/en/phone/apps/sdk/tutorials/click-targets-and-device-kits/) and the specific Apache Cordova platform `ubuntu`. - -## Prerequisites - -### Install the development environment - -Follow all the steps defined in the [Development guide](./development_guide.md). - -After that you should be able to start the application using `npm start`, and to test it. - -## Install Ubuntu SDK - -Source documentation [here](https://developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/) and [here](https://cordova.apache.org/docs/en/latest/guide/platforms/ubuntu/index.html) - -Install the SDK : - -```bash -sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -sudo apt update -sudo apt install ubuntu-sdk -``` - -Install "click" packaging tools: - -```bash -sudo apt-get install click cmake libicu-dev pkg-config devscripts qtbase5-dev qtchooser qtdeclarative5-dev qtfeedback5-dev qtlocation5-dev qtmultimedia5-dev qtpim5-dev libqt5sensors5-dev qtsystems5-dev - -``` -> Alternatively (not tested): -> `sudo click chroot -a armhf -f ubuntu-sdk-15.04 install cmake libicu-dev:armhf pkg-config qtbase5-dev:armhf qtchooser qtdeclarative5-dev:armhf qtfeedback5-dev:armhf qtlocation5-dev:armhf qtmultimedia5-dev:armhf qtpim5-dev:armhf libqt5sensors5-dev:armhf qtsystems5-dev:armhf` - - - -## Add Ubuntu platform to the Ionic project - -```bash -cd cesium -ionic platform add ubuntu -``` - -## Running Ubuntu SDK IDE (optional) - -To debug or configure the Ubuntu builds easily, you can use the Ubuntu SDK IDE. - -```bash -ubuntu-sdk-ide -``` - -> Note: Before launching the IDE, make sure your user has the unix group `lxd`. If not, simply execute this command: -> `sudo usermod -a -G lxd mon_user` - - -## Build Debian package - -Cesium can be built on a `amd64` architecture. - -1. Generate the `click` source code: - -```bash -cd cesium -ionic build ubuntu --release -``` - -2. Then build the project: - -```bash -cd platforms/ubuntu/native/cesium -debuild -``` - -This should generate the `.deb` in directory `<cesium>/platforms/ubuntu/native`. - -> This step will required a valid (and installed) GPG key, to sign the `.deb` file. -> The key should match the `author` field of the file `<cesium>/config.xml`. -> To be able to your own GPG key, change the author. - -### Build for Ubuntu Phone - -Cesium can be built on a `armhf` architecture. - -Install `armhf` build platform: - -```bash -sudo click chroot -a armhf -f ubuntu-sdk-15.04 create -``` - -Then install some dependencies inside the `armhf` chroot: - -```bash -sudo click chroot -a armhf -f ubuntu-sdk-15.04 install cmake libicu-dev:armhf pkg-config qtbase5-dev:armhf qtchooser qtdeclarative5-dev:armhf qtfeedback5-dev:armhf qtlocation5-dev:armhf qtmultimedia5-dev:armhf qtpim5-dev:armhf libqt5sensors5-dev:armhf qtsystems5-dev:armhf -``` - -Build the phone application - -```bash -cd cesium -ionic build ubuntu --device -``` - -> To test your application on phone, execute : -> `ionic run ubuntu --device` - - - -## Publishing to Ubuntu App Store - -Follow steps on https://developer.ubuntu.com/en/publish/ \ No newline at end of file diff --git a/doc/development_guide.md b/doc/development_guide.md index bec7a54187fc3213fd52a8171eeed938689cd42d..076dfdc82796630bba82fd435e4813d6c3106970 100644 --- a/doc/development_guide.md +++ b/doc/development_guide.md @@ -23,7 +23,7 @@ To build Cesium, you will have to: - Installing node.js build tools: ``` - npm install -g gulp bower@1.8.0 cordova@9.0.0 ionic@1.7.16 + npm install -g gulp bower@1.8.8 cordova@9.0.0 ionic@1.7.16 ``` ## Get the source code and dependencies diff --git a/doc/fr/development_tutorial-01.md b/doc/fr/development_tutorial-01.md index 922307276351eaace0c33f30e1232b28bdff27bd..8f46a6cd9d3d087365ce50bfdd858a056da25ab2 100644 --- a/doc/fr/development_tutorial-01.md +++ b/doc/fr/development_tutorial-01.md @@ -127,7 +127,7 @@ cd cesium Puis, lancez le téléchargement et l'installation des modules Cesium à l'aide de la commande : ```bash -npm install -g gulp bower@1.8.0 cordova@6.5.0 ionic@1.7.16 +npm install -g gulp bower@1.8.8 cordova@9.0.0 ionic@1.7.16 ``` Puis pour les dépendances non globales : @@ -141,7 +141,7 @@ npm install Si tout s'est bien passé, vous devriez obtenir une fin d'arborescence dans la console, et l'invité de commande devrait vous avoir rendu la main : ```bash -├── bower@1.7.9 +├── bower@1.8.8 ├─┬ gulp@3.9.1 │ ├── archy@1.0.0 │ ├─┬ chalk@1.1.3 diff --git a/doc/fr/development_tutorial-04-add_plugin.md b/doc/fr/development_tutorial-04-add_plugin.md index 24e4603ca1ea9579250d7b5feb045b26039fc069..8d30e8d57ca124675f8b545776d4b3309d7cfb35 100644 --- a/doc/fr/development_tutorial-04-add_plugin.md +++ b/doc/fr/development_tutorial-04-add_plugin.md @@ -414,13 +414,13 @@ La communauté AngularJS est très active : de nombreux plugins, de tous genres, Généralement, installer un nouveau plugin AngularJS est très simple. Il suffit d'executer la commande suivante pour que le téléchargement de la librairie soit fait : ```bash - > bower install <nom_du_plugin_AngularJS> + > bower install ---save <nom_du_plugin_AngularJS> ``` -Le chemin de la librairie installée doit ensuite être ajouté à la main, dans le fichier `www/index.html` : +Le chemin de la librairie installée doit ensuite être ajouté à la main, dans le fichier `www/index.html`. Par exemple: : ```html -<script src="lib/ionic/js/angular/angular-file-saver.bundle.js"></script> +<script src="lib/angular-file-saver/dist/dist/angular-file-saver.bundle.js"></script> ``` ### 5 minutes de dev : Top chrono !