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.
- package/.github/workflows/cd.yml +0 -1
- package/.github/workflows/ci.yml +0 -1
- package/README.md +12 -20
- package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/global.html +1775 -0
- package/docs/index.html +65 -0
- package/docs/nwbuild.js.html +253 -0
- package/docs/scripts/linenumber.js +25 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/docs/scripts/prettify/lang-css.js +36 -0
- package/docs/scripts/prettify/prettify.js +740 -0
- package/docs/styles/jsdoc-default.css +358 -0
- package/docs/styles/prettify-jsdoc.css +111 -0
- package/docs/styles/prettify-tomorrow.css +132 -0
- package/package.json +5 -9
- package/src/bld/linuxCfg.js +6 -0
- package/src/bld/osxCfg.js +6 -0
- package/src/cli.js +1 -1
- package/src/get/getReleaseInfo.js +6 -5
- package/src/nwbuild.js +32 -24
- package/src/util/notify.js +16 -0
package/.github/workflows/cd.yml
CHANGED
package/.github/workflows/ci.yml
CHANGED
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
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
### Methods
|
|
110
|
+
For more options, check out the [API reference](https://nwutils.io/nw-builder/global#nwbuild).
|
|
106
111
|
|
|
107
|
-
|
|
112
|
+
## Limitations
|
|
108
113
|
|
|
109
|
-
|
|
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
|
|
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
|
|
Binary file
|