Commit 1368b729 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Update README and package.json

parent 14482da4
...@@ -196,7 +196,7 @@ Custom Material SVG Icons will only show up when the application is deployed on ...@@ -196,7 +196,7 @@ Custom Material SVG Icons will only show up when the application is deployed on
# Build under Windows # 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 ### install dependencies
* Git, for example [https://gitforwindows.org](https://gitforwindows.org) * Git, for example [https://gitforwindows.org](https://gitforwindows.org)
...@@ -209,13 +209,7 @@ Clone `jalhyd` repository. ...@@ -209,13 +209,7 @@ Clone `jalhyd` repository.
Install packages with `npm install`. 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 : Run `npm run preprocess`
```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**.
Compile jalhyd with `tsc --p "src/tsconfig.app.json"` Compile jalhyd with `tsc --p "src/tsconfig.app.json"`
...@@ -224,11 +218,10 @@ Clone `nghyd` repository. ...@@ -224,11 +218,10 @@ Clone `nghyd` repository.
Install packages with `npm install`. 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 : Run `node preprocessors.js`
```typescript
export const nghydDateRev = "2019-05-28"; As `mkdocs` does not work, copy `src/assets/docs-fr` folder **from a linux build**.
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`
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"build": "npm run preprocess && ng build --prod --build-optimizer=false", "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", "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", "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-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-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", "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",
......
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