nw-builder 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.github/workflows/cd.yml +0 -1
  2. package/.github/workflows/ci.yml +0 -1
  3. package/README.md +12 -20
  4. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  5. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  6. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  7. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  8. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  9. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  10. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  11. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  12. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  13. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  14. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  15. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  16. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  17. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  18. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  19. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  20. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  21. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  22. package/docs/global.html +1775 -0
  23. package/docs/index.html +65 -0
  24. package/docs/nwbuild.js.html +253 -0
  25. package/docs/scripts/linenumber.js +25 -0
  26. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  27. package/docs/scripts/prettify/lang-css.js +36 -0
  28. package/docs/scripts/prettify/prettify.js +740 -0
  29. package/docs/styles/jsdoc-default.css +358 -0
  30. package/docs/styles/prettify-jsdoc.css +111 -0
  31. package/docs/styles/prettify-tomorrow.css +132 -0
  32. package/package.json +5 -9
  33. package/src/bld/linuxCfg.js +6 -0
  34. package/src/bld/osxCfg.js +6 -0
  35. package/src/cli.js +1 -1
  36. package/src/get/getReleaseInfo.js +6 -5
  37. package/src/nwbuild.js +32 -24
  38. package/src/util/notify.js +16 -0
@@ -14,7 +14,6 @@ jobs:
14
14
  node-version: "18"
15
15
 
16
16
  - run: npm ci
17
- - run: npm run cjs
18
17
  - uses: JS-DevTools/npm-publish@v1
19
18
  with:
20
19
  token: ${{ secrets.NPM_TOKEN }}
@@ -24,5 +24,4 @@ jobs:
24
24
  - run: npm run format
25
25
  - run: npm run lint
26
26
  - run: npm run test:unit
27
- - run: npm run cjs
28
27
  - run: npm run test:e2e
package/README.md CHANGED
@@ -7,7 +7,14 @@ Build [NW.js](https://github.com/nwjs/nw.js) applications for Mac, Windows and L
7
7
 
8
8
  > Before using `nw-builder`, please go through how to [write an NW.js application](https://nwjs.readthedocs.io/en/latest/For%20Users/Getting%20Started/).
9
9
 
10
- ## Install
10
+ - [Installation](https://github.com/nwutils/nw-builder#installation)
11
+ - [Usage](https://github.com/nwutils/nw-builder#usage)
12
+ - [Limitations](https://github.com/nwutils/nw-builder#limitations)
13
+ - [API Reference](https://nwutils.io/nw-builder/global#nwbuild)
14
+ - [Contributing](https://github.com/nwutils/nw-builder#contributing)
15
+ - [License](https://github.com/nwutils/nw-builder#license)
16
+
17
+ ## Installation
11
18
 
12
19
  Install `nw-builder` via `npm` or your preferred Node package manager of choice.
13
20
 
@@ -100,26 +107,11 @@ package.json usage
100
107
  }
101
108
  ```
102
109
 
103
- ## API Reference
104
-
105
- ### Methods
110
+ For more options, check out the [API reference](https://nwutils.io/nw-builder/global#nwbuild).
106
111
 
107
- `nwbuild(options) :Promise<undefined>`
112
+ ## Limitations
108
113
 
109
- | Name | Type | Default | Description |
110
- | ----------- | ----------------------------------- | -------------------------- | ------------------------------------------------------------------------------ |
111
- | srcDir | `string` | `./` | Directories which hold NW app code |
112
- | mode | `run \| build` | `build` | Run or build application |
113
- | version | `latest \| stable \| string \| lts` | `latest` | NW runtime version |
114
- | flavor | `sdk \| normal` | `normal` | NW runtime build flavor. |
115
- | platform | `linux \| osx \| win` | `<current platform>` | NW supported platforms |
116
- | arch | `ia32 \| x64` | `<current architecture>` | NW supported architectures |
117
- | outDir | `string` | `./out` | Directory to store build artifacts |
118
- | cacheDir | `string` | `./cacheDir` | Directory to store NW binaries |
119
- | downloadUrl | `string` | `https://dl.nwjs.io` | URI to download NW binaries from |
120
- | manifestUrl | `string` | `https://nwjs.io/versions` | URI to download manifest from |
121
- | cache | `boolean` | `true` | If `true` the existing cache is used. Otherwise it removes and redownloads it. |
122
- | zip | `boolean` | `false` | If `true` the `outDir` directory is zipped |
114
+ - #716 File permissions are incorrectly set for Linux or MacOS apps built on Windows platform.
123
115
 
124
116
  ## Migration to v4
125
117
 
@@ -334,7 +326,7 @@ await nwbuild({
334
326
  1. Pick and install a Node version manager
335
327
  - Linux/OSX - [nvm](https://github.com/nvm-sh/nvm)
336
328
  - Win 7+/Linux/OSX - [volta](https://volta.sh)
337
- 1. Use your version manager to install Node 14.19 or above
329
+ 1. Use your version manager to install Node 16.19 or above
338
330
  1. Run `npm install`
339
331
  1. `npm run demo` to test your changes at first glance
340
332
  1. `npm t` to run unit tests