Commit 6507e02d authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Fix #216

ajout doc. pour cordova
parent 11f21af7
...@@ -194,25 +194,15 @@ Custom Material SVG Icons will only show up when the application is deployed on ...@@ -194,25 +194,15 @@ Custom Material SVG Icons will only show up when the application is deployed on
5. **Si une nouvelle classe a été créée à l'étape 2**, dans la méthode _FormulaireService.newFormulaire()_, compléter le _switch_ pour fournir la classe à instancier. 5. **Si une nouvelle classe a été créée à l'étape 2**, dans la méthode _FormulaireService.newFormulaire()_, compléter le _switch_ pour fournir la classe à instancier.
# Build desktop packages with Electron # Build under Windows
## linux .deb package
Execute `npm run release-linux`. Find the .deb package in `/release`.
Running `dpkg -i cassiopee_*.deb` will install Cassiopée in `/opt/Cassiopee`
## windows installer
Several npm scripts of `package.json` won't work with windows (for ex. "preprocess"). Building Several npm scripts of `package.json` won't work with windows (for ex. "preprocess"). Building is a little more complicated.
the Electron package is a little more complicated.
### install dependencies ### install dependencies
* Git, for example [https://gitforwindows.org](https://gitforwindows.org) * Git, for example [https://gitforwindows.org](https://gitforwindows.org)
* Nodejs [https://nodejs.org/en/download](https://nodejs.org/en/download) * Nodejs [https://nodejs.org/en/download](https://nodejs.org/en/download)
* typescript compiler (system wide) : `npm install -g typescript` * typescript compiler (system wide) : `npm install -g typescript`
* angular cli (system wide) : `npm install -g @angular/cli` * angular cli (system wide) : `npm install -g @angular/cli`
* electron-builder (system wide) : `npm install -g electron-builder`
### build jalhyd ### build jalhyd
Clone `jalhyd` repository. Clone `jalhyd` repository.
...@@ -229,7 +219,6 @@ As `mkdocs` does not work, copy `src/assets/docs-fr` folder **from a linux build ...@@ -229,7 +219,6 @@ As `mkdocs` does not work, copy `src/assets/docs-fr` folder **from a linux build
Compile jalhyd with `tsc --p "src/tsconfig.app.json"` Compile jalhyd with `tsc --p "src/tsconfig.app.json"`
### build nghyd ### build nghyd
Clone `nghyd` repository. Clone `nghyd` repository.
...@@ -242,6 +231,43 @@ export const nghydVersion = "4.3.0-119-ga6ef812"; ...@@ -242,6 +231,43 @@ export const nghydVersion = "4.3.0-119-ga6ef812";
``` ```
Compile nghyd with `ng build --prod --build-optimizer=false` Compile nghyd with `ng build --prod --build-optimizer=false`
# Build desktop packages with Electron
## linux .deb package
Execute `npm run release-linux`. Find the .deb package in `/release`.
Running `dpkg -i cassiopee_*.deb` will install Cassiopée in `/opt/Cassiopee`
## windows installer
Follow "Build under Windows" instructions first (see above). Then,
### install dependencies
* electron-builder (system wide) : `npm install -g electron-builder`
Build package with `electron-builder`. Find the generated installer in `/release`. Build package with `electron-builder`. Find the generated installer in `/release`.
Running the generated installer will install Cassiopée in `C:\Users\YourUser\AppData\local\Programs\cassiopee` Running the generated installer will install Cassiopée in `C:\Users\YourUser\AppData\local\Programs\cassiopee`
# Build mobile packages with Cordova
Cordova embeds the whole app in a Web view, allowing it to run on mobile devices
## Android .apk
### install dependencies
* java (system wide) : for ex. `apt install oracle-java8-jdk`
* cordova (system wide) : `npm install -g cordova`
* gradle (system wide) : `apt install gradle`
### install Android Studio and SDKs
Download
Android Studio here and install it : https://developer.android.com/studio
Run Android Studio, click "configure > SDK manager". Install at least one SDK, for ex. 7.0 Nougat.
Build .apk package with `npm run release-cordova`. Find the generated package in `/release`.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment