diff --git a/README.md b/README.md index 624bb30d25d9c39fc3f4c6940b420b25021073c3..3791075e2f9b3f86d5898a998a48ab8ca7099ff4 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/package.json b/package.json index 668fc9ac820b8e1b36206de1583faef76eab91d2..5f8ce265646f2e83d1cfff0f8cc56b50988c6ee7 100644 --- a/package.json +++ b/package.json @@ -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",