nw-builder 4.6.2 → 4.6.3

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/README.md CHANGED
@@ -265,8 +265,11 @@ nwbuild({
265
265
  ### External contributor
266
266
 
267
267
  - We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) style of commit messages.
268
+ - On opening a new PR, the comments will guide you on how to construct the new PR.
268
269
  - When making changes, try to follow [SOLID](https://en.wikipedia.org/wiki/SOLID) and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principles.
269
270
  - Pull requests are squashed and merged onto the `main` branch.
271
+ - PR title is used as commit's first line, PR description is used as commit body.
272
+ - Only commit messages starting with `fix`, `feat` and `chore` are recognised by the Release Please bot.
270
273
  - Lint your code before commiting your change.
271
274
  - Add tests whenever possible.
272
275
 
@@ -301,7 +304,6 @@ nwbuild({
301
304
  ### Chores
302
305
 
303
306
  - chore(cli): migrate from `yargs` to `commander`
304
- - chore(get): investigate [how symlinks are identified](https://github.com/overlookmotel/yauzl-promise/issues/39) and remove the workaround where they are created manually
305
307
  - chore(get): verify sha checksum for downloads
306
308
  - chore: annotate file paths as `fs.PathLike` instead of `string`.
307
309
  - chore(bld): factor out core build step
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.6.2",
3
+ "version": "4.6.3",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
package/src/get/index.js CHANGED
@@ -32,7 +32,7 @@ import util from "../util.js";
32
32
  async function get(options) {
33
33
 
34
34
  /**
35
- * If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
35
+ * If `options.cacheDir` exists, then `true`. Otherwise, it is `false`.
36
36
  *
37
37
  * @type {boolean}
38
38
  */
@@ -77,7 +77,7 @@ async function get(options) {
77
77
  await fs.promises.rm(nwDirPath, { recursive: true, force: true });
78
78
 
79
79
  /**
80
- * If the compressed binary exists, then `true`. Otherwise, it is `false`.
80
+ * If the compressed binary exists, then `true`. Otherwise, it is `false`.
81
81
  *
82
82
  * @type {boolean}
83
83
  */
@@ -109,7 +109,7 @@ async function get(options) {
109
109
  }
110
110
 
111
111
  /**
112
- * If the compressed binary exists, then `true`. Otherwise, it is `false`.
112
+ * If the compressed binary exists, then `true`. Otherwise, it is `false`.
113
113
  *
114
114
  * @type {boolean}
115
115
  */
@@ -143,7 +143,7 @@ async function get(options) {
143
143
  *
144
144
  * @type {string}
145
145
  */
146
- let ffmpegBinaryPath = path.resolve(nwDirPath, ffmpegFileName);
146
+ let ffmpegBinaryPath = path.resolve(options.cacheDir, ffmpegFileName);
147
147
 
148
148
  /**
149
149
  * File path of where FFmpeg will be copied to.
@@ -194,7 +194,7 @@ async function get(options) {
194
194
  }
195
195
 
196
196
  /**
197
- * If the compressed binary exists, then `true`. Otherwise, it is `false`.
197
+ * If the compressed binary exists, then `true`. Otherwise, it is `false`.
198
198
  *
199
199
  * @type {boolean}
200
200
  */