Commit dcdd4d9f authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Documentation pour electron / build windows

parent 3e922ebe
......@@ -193,3 +193,49 @@ Custom Material SVG Icons will only show up when the application is deployed on
4. Dans le constructeur de _FormulaireService_, ajouter une entrée dans `this.calculatorPaths` pour fournir le préfixe des fichiers de configuration/internationalisation.
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`.
## windows installer
Several npm scripts of `package.json` won't work with windows (for ex. "preprocess"). Building
the Electron package 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.
Install packages with `npm install`.
As `preprocess` does not work, copy `src/date_revision.ts` file from a linux build, or create it with the following (example) content :
```typescript
export const jalhydDateRev = "2019-05-24";
export const jalhydVersion = "stable-105-gdfc538b";
```
Compile jalhyd with `tsc --p "src/tsconfig.app.json"`
### build nghyd
Clone `nghyd` repository.
Install packages with `npm install`.
As `preprocess` does not work, copy `src/date_revision.ts` file from a linux build, or create it with the following (example) content :
```typescript
export const nghydDateRev = "2019-05-28";
export const nghydVersion = "4.3.0-119-ga6ef812";
```
Compile nghyd with `ng build --prod --build-optimizer=false`
Build package with `electron-builder`. Find the generated installer in `/release`.
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