Skip to content
Snippets Groups Projects
Commit 1368b729 authored by mathias.chouet's avatar mathias.chouet
Browse files

Update README and package.json

parent 14482da4
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ Custom Material SVG Icons will only show up when the application is deployed on
# Build under Windows
Several npm scripts of `package.json` won't work with windows (for ex. "preprocess"). Building is a little more complicated.
Several npm scripts of `package.json` won't work with windows (for ex. "mkdocs"). Building is a little more complicated.
### install dependencies
* Git, for example [https://gitforwindows.org](https://gitforwindows.org)
......@@ -209,13 +209,7 @@ 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";
```
As `mkdocs` does not work, copy `src/assets/docs-fr` folder **from a linux build**.
Run `npm run preprocess`
Compile jalhyd with `tsc --p "src/tsconfig.app.json"`
......@@ -224,11 +218,10 @@ 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";
```
Run `node preprocessors.js`
As `mkdocs` does not work, copy `src/assets/docs-fr` folder **from a linux build**.
Compile nghyd with `ng build --prod --build-optimizer=false`
......
......@@ -18,7 +18,7 @@
"build": "npm run preprocess && ng build --prod --build-optimizer=false",
"build-cordova": "npm run preprocess && ng build --prod --build-optimizer=false && npm run update-dist-index-mimetypes && npm run add-cordova-js",
"add-cordova-js": "sed -i '/<\\/title>/a <script type=\"text/javascript\" src=\"cordova.js\"></script>' dist/index.html",
"update-dist-index-mimetypes": "nodejs ./update-dist-index-mimetypes.js",
"update-dist-index-mimetypes": "node ./update-dist-index-mimetypes.js",
"release-linux": "npm run build && npm run update-dist-index-mimetypes && electron-builder",
"release-windows": "rd /s /q release & ng build --prod --build-optimizer=false && npm run update-dist-index-mimetypes && npm run electron-builder",
"release-android": "npm run build-cordova && cordova platform add android; rm dist/assets/docs-fr/sitemap.xml.gz && cordova build android && mv platforms/android/app/build/outputs/apk/debug/app-debug.apk release/cassiopee.apk",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment