diff --git a/README.md b/README.md index e406de7bd623099f70a874cfc9fddcc144323a25..a9321e3be0958bf89cae841bab1412f284ee33b4 100644 --- a/README.md +++ b/README.md @@ -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. -# 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 +# Build under Windows -Several npm scripts of `package.json` won't work with windows (for ex. "preprocess"). Building -the Electron package is a little more complicated. +Several npm scripts of `package.json` won't work with windows (for ex. "preprocess"). Building is a little more complicated. ### install dependencies * Git, for example [https://gitforwindows.org](https://gitforwindows.org) * Nodejs [https://nodejs.org/en/download](https://nodejs.org/en/download) * typescript compiler (system wide) : `npm install -g typescript` * angular cli (system wide) : `npm install -g @angular/cli` - * electron-builder (system wide) : `npm install -g electron-builder` ### build jalhyd Clone `jalhyd` repository. @@ -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"` - ### build nghyd Clone `nghyd` repository. @@ -242,6 +231,43 @@ export const nghydVersion = "4.3.0-119-ga6ef812"; ``` 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`. 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