nw-builder 4.0.6 → 4.0.8
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/LICENSE → LICENSE} +0 -0
- package/README.md +6 -6
- package/package.json +7 -2
- package/src/get/getReleaseInfo.js +0 -2
- package/src/nwbuild.js +24 -64
- package/src/util/cache.js +2 -2
- package/src/util/notify.js +3 -5
- package/src/util/options.js +50 -0
- package/src/util/parse.js +1 -1
- package/src/util/validate.js +3 -3
- package/.editorconfig +0 -17
- package/.github/CHANGELOG-3.md +0 -209
- package/.github/CODE_OF_CONDUCT.md +0 -55
- package/.github/ISSUE_TEMPLATE.md +0 -17
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -5
- package/.github/dependabot.yml +0 -15
- package/.github/workflows/cd.yml +0 -19
- package/.github/workflows/ci.yml +0 -27
- package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.svg +0 -1830
- 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 +0 -1830
- 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 +0 -1830
- 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 +0 -1831
- 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 +0 -1835
- 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 +0 -1831
- package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/global.html +0 -1775
- package/docs/index.html +0 -65
- package/docs/nwbuild.js.html +0 -253
- package/docs/scripts/linenumber.js +0 -25
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/scripts/prettify/lang-css.js +0 -36
- package/docs/scripts/prettify/prettify.js +0 -740
- package/docs/styles/jsdoc-default.css +0 -358
- package/docs/styles/prettify-jsdoc.css +0 -111
- package/docs/styles/prettify-tomorrow.css +0 -132
- package/test/e2e/bld.js +0 -38
- package/test/e2e/nix.js +0 -11
- package/test/e2e/nwapp/index.html +0 -9
- package/test/e2e/nwapp/package.json +0 -6
- package/test/e2e/osx.js +0 -11
- package/test/e2e/win.js +0 -11
- package/test/fixture/cacheDir/nw +0 -0
|
File without changes
|
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ nwbuild({
|
|
|
35
35
|
// Globing does not matter since a process is spawned against the nwapp directory
|
|
36
36
|
srcDir: "./nwapp/**/*",
|
|
37
37
|
mode: "run",
|
|
38
|
-
version: "
|
|
38
|
+
version: "latest",
|
|
39
39
|
flavor: "sdk",
|
|
40
40
|
});
|
|
41
41
|
```
|
|
@@ -43,7 +43,7 @@ nwbuild({
|
|
|
43
43
|
CLI usage
|
|
44
44
|
|
|
45
45
|
```shell
|
|
46
|
-
nwbuild ./nwapp --mode=run --version=
|
|
46
|
+
nwbuild ./nwapp --mode=run --version=latest --flavor=sdk
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
package.json usage
|
|
@@ -57,7 +57,7 @@ package.json usage
|
|
|
57
57
|
"nwbuild": {
|
|
58
58
|
"srcDir": "./nwapp/**/*",
|
|
59
59
|
"mode": "run",
|
|
60
|
-
"version": "
|
|
60
|
+
"version": "latest",
|
|
61
61
|
"flavor": "sdk"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -73,7 +73,7 @@ import nwbuild from "nw-builder";
|
|
|
73
73
|
nwbuild({
|
|
74
74
|
srcDir: "./nwapp/**/*",
|
|
75
75
|
mode: "build",
|
|
76
|
-
version: "
|
|
76
|
+
version: "latest",
|
|
77
77
|
flavor: "normal",
|
|
78
78
|
platform: "linux",
|
|
79
79
|
arch: "x64",
|
|
@@ -84,7 +84,7 @@ nwbuild({
|
|
|
84
84
|
CLI usage
|
|
85
85
|
|
|
86
86
|
```shell
|
|
87
|
-
nwbuild ./nwapp --mode=build --version=
|
|
87
|
+
nwbuild ./nwapp --mode=build --version=latest --flavor=normal --platform=linux --arch=x64 --outDir=./out
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
package.json usage
|
|
@@ -98,7 +98,7 @@ package.json usage
|
|
|
98
98
|
"nwbuild": {
|
|
99
99
|
"srcDir": "./nwapp/**/*",
|
|
100
100
|
"mode": "build",
|
|
101
|
-
"version": "
|
|
101
|
+
"version": "latest",
|
|
102
102
|
"flavor": "normal",
|
|
103
103
|
"platform": "linux",
|
|
104
104
|
"arch": "x64",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"default": "./src/nwbuild.js"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
21
|
+
"files": [
|
|
22
|
+
"./src",
|
|
23
|
+
"./LICENSE"
|
|
24
|
+
|
|
25
|
+
],
|
|
21
26
|
"homepage": "https://github.com/nwutils/nw-builder",
|
|
22
27
|
"repository": {
|
|
23
28
|
"type": "git",
|
|
@@ -29,7 +34,7 @@
|
|
|
29
34
|
"docs": "jsdoc ./src/nwbuild.js -d docs",
|
|
30
35
|
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
31
36
|
"test:e2e": "cd ./test/e2e && node bld.js",
|
|
32
|
-
"demo:cli": "cd ./test/e2e &&
|
|
37
|
+
"demo:cli": "cd ./test/e2e && node cli.js",
|
|
33
38
|
"demo:nix": "cd ./test/e2e && node nix.js",
|
|
34
39
|
"demo:osx": "cd ./test/e2e && node osx.js",
|
|
35
40
|
"demo:win": "cd ./test/e2e && node win.js"
|
package/src/nwbuild.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { mkdir,
|
|
2
|
-
import { basename } from "node:path";
|
|
3
|
-
|
|
4
|
-
import glob from "glob-promise";
|
|
1
|
+
import { mkdir, rm } from "node:fs/promises";
|
|
5
2
|
|
|
6
3
|
import { decompress } from "./get/decompress.js";
|
|
7
4
|
import { download } from "./get/download.js";
|
|
@@ -11,6 +8,7 @@ import { packager } from "./bld/package.js";
|
|
|
11
8
|
import { develop } from "./run/develop.js";
|
|
12
9
|
import { isCached } from "./util/cache.js";
|
|
13
10
|
import { notify } from "./util/notify.js";
|
|
11
|
+
import { getOptions } from "./util/options.js";
|
|
14
12
|
import { parse } from "./util/parse.js";
|
|
15
13
|
import { validate } from "./util/validate.js";
|
|
16
14
|
|
|
@@ -81,94 +79,56 @@ import { log } from "./log.js";
|
|
|
81
79
|
*/
|
|
82
80
|
const nwbuild = async (options) => {
|
|
83
81
|
let nwDir = "";
|
|
84
|
-
let nwPkg = undefined;
|
|
85
82
|
let cached;
|
|
83
|
+
let nwCached;
|
|
86
84
|
let built;
|
|
87
85
|
let releaseInfo = {};
|
|
86
|
+
|
|
88
87
|
notify();
|
|
89
|
-
try {
|
|
90
|
-
let files = [];
|
|
91
|
-
let patterns = options.srcDir.split(" ");
|
|
92
|
-
|
|
93
|
-
for (const pattern of patterns) {
|
|
94
|
-
let contents = await glob(pattern);
|
|
95
|
-
files.push(...contents);
|
|
96
|
-
// Try to find the first instance of the package.json
|
|
97
|
-
for (const content of contents) {
|
|
98
|
-
if (basename(content) === "package.json" && nwPkg === undefined) {
|
|
99
|
-
nwPkg = JSON.parse(await readFile(content));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (nwPkg === undefined) {
|
|
104
|
-
throw new Error("package.json not found in srcDir file glob patterns.");
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
88
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
89
|
+
try {
|
|
90
|
+
const { opts, files, nwPkg } = await getOptions(options);
|
|
91
|
+
options = opts;
|
|
111
92
|
|
|
112
|
-
//
|
|
113
|
-
|
|
114
|
-
throw new Error(`name property is missing from package.json`);
|
|
115
|
-
}
|
|
93
|
+
// Parse options
|
|
94
|
+
options = await parse(options, nwPkg);
|
|
116
95
|
|
|
117
|
-
//
|
|
118
|
-
|
|
119
|
-
|
|
96
|
+
// Create cacheDir if it does not exist
|
|
97
|
+
cached = await isCached(options.cacheDir);
|
|
98
|
+
if (cached === false) {
|
|
99
|
+
await mkdir(options.cacheDir, { recursive: true });
|
|
120
100
|
}
|
|
121
101
|
|
|
122
|
-
//
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (typeof nwPkg.nwbuild === "undefined") {
|
|
127
|
-
log.debug(`nwbuild property is not defined in package.json`);
|
|
128
|
-
} else {
|
|
129
|
-
throw new Error(
|
|
130
|
-
`nwbuild property in the package.json is of type ${typeof nwPkg.nwbuild}. Expected type object.`,
|
|
131
|
-
);
|
|
102
|
+
// Create outDir if it does not exist
|
|
103
|
+
built = await isCached(options.outDir);
|
|
104
|
+
if (built === false) {
|
|
105
|
+
await mkdir(options.outDir, { recursive: true });
|
|
132
106
|
}
|
|
133
107
|
|
|
134
|
-
//
|
|
135
|
-
options = await parse(options, nwPkg);
|
|
136
|
-
|
|
137
|
-
// Validate options.version here
|
|
138
|
-
// We need to do this to get the version specific release info
|
|
108
|
+
// Validate options.version to get the version specific release info
|
|
139
109
|
releaseInfo = await getReleaseInfo(
|
|
140
110
|
options.version,
|
|
141
111
|
options.cacheDir,
|
|
142
112
|
options.manifestUrl,
|
|
143
113
|
);
|
|
144
|
-
|
|
114
|
+
// Remove leading "v" from version string
|
|
115
|
+
options.version = releaseInfo.version.slice(1);
|
|
145
116
|
|
|
146
|
-
validate(options, releaseInfo);
|
|
117
|
+
await validate(options, releaseInfo);
|
|
147
118
|
|
|
148
119
|
// Variable to store nwDir file path
|
|
149
120
|
nwDir = `${options.cacheDir}/nwjs${
|
|
150
121
|
options.flavor === "sdk" ? "-sdk" : ""
|
|
151
122
|
}-v${options.version}-${options.platform}-${options.arch}`;
|
|
152
123
|
|
|
153
|
-
|
|
154
|
-
cached = await isCached(nwDir);
|
|
155
|
-
if (cached === false) {
|
|
156
|
-
await mkdir(nwDir, { recursive: true });
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Create outDir if it does not exist
|
|
160
|
-
built = await isCached(options.outDir);
|
|
161
|
-
if (built === false) {
|
|
162
|
-
await mkdir(options.outDir, { recursive: true });
|
|
163
|
-
}
|
|
164
|
-
|
|
124
|
+
nwCached = await isCached(nwDir);
|
|
165
125
|
// Remove cached NW binary
|
|
166
|
-
if (options.cache === false &&
|
|
126
|
+
if (options.cache === false && nwCached === true) {
|
|
167
127
|
log.debug("Remove cached NW binary");
|
|
168
128
|
await rm(nwDir, { force: true, recursive: true });
|
|
169
129
|
}
|
|
170
130
|
// Download relevant NW.js binaries
|
|
171
|
-
if (
|
|
131
|
+
if (nwCached === false) {
|
|
172
132
|
log.debug("Download relevant NW.js binaries");
|
|
173
133
|
await download(
|
|
174
134
|
options.version,
|
package/src/util/cache.js
CHANGED
|
@@ -3,8 +3,8 @@ import { access, constants } from "node:fs/promises";
|
|
|
3
3
|
/**
|
|
4
4
|
* Check if NW binaries are cached
|
|
5
5
|
*
|
|
6
|
-
* @param {string}
|
|
7
|
-
* @return {
|
|
6
|
+
* @param {string} nwDir Path to cached NW binaries
|
|
7
|
+
* @return {boolean} Boolean value to denote if cache exists or not
|
|
8
8
|
*/
|
|
9
9
|
export const isCached = async (nwDir) => {
|
|
10
10
|
let exists = true;
|
package/src/util/notify.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
3
|
|
|
4
4
|
import updateNotifier from "update-notifier";
|
|
5
5
|
|
|
@@ -9,8 +9,6 @@ import updateNotifier from "update-notifier";
|
|
|
9
9
|
* @return {Promise<void>}
|
|
10
10
|
*/
|
|
11
11
|
export const notify = async () => {
|
|
12
|
-
const packageJson =
|
|
13
|
-
await readFile(resolve("..", "..", "package.json")),
|
|
14
|
-
);
|
|
12
|
+
const packageJson = require("../../package.json");
|
|
15
13
|
updateNotifier({ pkg: packageJson }).notify();
|
|
16
14
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { basename } from "node:path";
|
|
3
|
+
|
|
4
|
+
import glob from "glob-promise";
|
|
5
|
+
|
|
6
|
+
import { log } from "../log.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Get options object from package.json, otherwise from module/cli
|
|
10
|
+
*
|
|
11
|
+
* @param {import("../nwbuild").Options} opts The options object
|
|
12
|
+
* @return {Promise<object>} The options object
|
|
13
|
+
*/
|
|
14
|
+
export const getOptions = async (opts) => {
|
|
15
|
+
let files = [];
|
|
16
|
+
let nwPkg;
|
|
17
|
+
const patterns = opts.srcDir.split(" ");
|
|
18
|
+
|
|
19
|
+
for (const pattern of patterns) {
|
|
20
|
+
let contents = await glob(pattern);
|
|
21
|
+
files.push(...contents);
|
|
22
|
+
// Try to find the first instance of the package.json
|
|
23
|
+
for (const content of contents) {
|
|
24
|
+
if (basename(content) === "package.json" && nwPkg === undefined) {
|
|
25
|
+
nwPkg = JSON.parse(await readFile(content));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (nwPkg === undefined) {
|
|
30
|
+
throw new Error("package.json not found in srcDir file glob patterns.");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (files.length === 0) {
|
|
35
|
+
throw new Error(`The globbing pattern ${opts.srcDir} is invalid.`);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// If the nwbuild property exists in srcDir/package.json, then they take precedence
|
|
39
|
+
if (typeof nwPkg.nwbuild === "object") {
|
|
40
|
+
opts = { ...nwPkg.nwbuild };
|
|
41
|
+
} else if (typeof nwPkg.nwbuild === "undefined") {
|
|
42
|
+
log.debug(`nwbuild property is not defined in package.json`);
|
|
43
|
+
} else {
|
|
44
|
+
throw new Error(
|
|
45
|
+
`nwbuild property in the package.json is of type ${typeof nwPkg.nwbuild}. Expected type object.`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return { opts, files, nwPkg };
|
|
50
|
+
};
|
package/src/util/parse.js
CHANGED
|
@@ -15,7 +15,7 @@ export const parse = async (options, pkg) => {
|
|
|
15
15
|
options = { ...pkg.nwbuild };
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
options.srcDir = options.srcDir ??
|
|
18
|
+
options.srcDir = `${cwd()}/${options.srcDir}` ?? `${cwd()}/**/*`;
|
|
19
19
|
options.mode = options.mode ?? "build";
|
|
20
20
|
options.version = options.version ?? "latest";
|
|
21
21
|
options.flavor = options.flavor || "normal";
|
package/src/util/validate.js
CHANGED
|
@@ -3,9 +3,9 @@ import { readdir } from "node:fs/promises";
|
|
|
3
3
|
/**
|
|
4
4
|
* Validate options
|
|
5
5
|
*
|
|
6
|
-
* @param {object}
|
|
7
|
-
* @param {object}
|
|
8
|
-
* @return {undefined} True if options are valid. False otherwise
|
|
6
|
+
* @param {object} options Options
|
|
7
|
+
* @param {object} releaseInfo Version specific NW release info
|
|
8
|
+
* @return {Promise<undefined>} True if options are valid. False otherwise
|
|
9
9
|
*/
|
|
10
10
|
export const validate = async (options, releaseInfo) => {
|
|
11
11
|
if (options.srcDir === "") {
|
package/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# EditorConfig is awesome: http://EditorConfig.org
|
|
2
|
-
|
|
3
|
-
# Top-most EditorConfig file
|
|
4
|
-
root = true
|
|
5
|
-
|
|
6
|
-
# defaults for all files
|
|
7
|
-
[*]
|
|
8
|
-
charset = utf-8
|
|
9
|
-
end_of_line = lf
|
|
10
|
-
indent_size = 2
|
|
11
|
-
indent_style = space
|
|
12
|
-
insert_final_newline = true
|
|
13
|
-
trim_trailing_whitespace = true
|
|
14
|
-
|
|
15
|
-
# Markdown files uses two trailing spaces to indicate a <br>
|
|
16
|
-
[*.{md,snap}]
|
|
17
|
-
trim_trailing_whitespace = false
|
package/.github/CHANGELOG-3.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file and in the [Releases](https://github.com/nwjs-community/nw-builder/blob/develop/releases) section.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
|
-
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [3.8.6] - 2022-09-22
|
|
11
|
-
|
|
12
|
-
- Fix mac and windows build
|
|
13
|
-
|
|
14
|
-
## [3.8.5] - 2022-09-20
|
|
15
|
-
|
|
16
|
-
### Added
|
|
17
|
-
|
|
18
|
-
- `nwbuild` function which accidently got removed.
|
|
19
|
-
|
|
20
|
-
### Changed
|
|
21
|
-
|
|
22
|
-
- Update usage docs for `nwbuild`
|
|
23
|
-
|
|
24
|
-
## [3.8.4] - 2022-09-20
|
|
25
|
-
|
|
26
|
-
### Changed
|
|
27
|
-
|
|
28
|
-
- Refactor download function
|
|
29
|
-
|
|
30
|
-
## [3.8.3-beta.1]
|
|
31
|
-
|
|
32
|
-
### Changed
|
|
33
|
-
|
|
34
|
-
- Check for first instance of `package.json`
|
|
35
|
-
|
|
36
|
-
## [3.8.3] - 2022-08-26
|
|
37
|
-
|
|
38
|
-
### Changed
|
|
39
|
-
|
|
40
|
-
- `platforms` argument also accepts comma separated (without spaces) values
|
|
41
|
-
|
|
42
|
-
## [3.8.2] - 2022-08-08
|
|
43
|
-
|
|
44
|
-
### Added
|
|
45
|
-
|
|
46
|
-
- Support for multiple file paths
|
|
47
|
-
|
|
48
|
-
## [3.8.1] - 2022-07-18
|
|
49
|
-
|
|
50
|
-
### Changed
|
|
51
|
-
|
|
52
|
-
- Fix regex to match `package.json` _files_ only
|
|
53
|
-
|
|
54
|
-
## [3.8.0] - 2022-07-11
|
|
55
|
-
|
|
56
|
-
## Added
|
|
57
|
-
|
|
58
|
-
- `mode` option which defaults to run
|
|
59
|
-
- `nwbuild` function
|
|
60
|
-
- `quiet` option to documentation
|
|
61
|
-
|
|
62
|
-
## Changed
|
|
63
|
-
|
|
64
|
-
- CLI options by matching them to the API
|
|
65
|
-
|
|
66
|
-
## [3.7.4] - 2022-06-06
|
|
67
|
-
|
|
68
|
-
## Removed
|
|
69
|
-
|
|
70
|
-
- Remove `Version` from `CFBundleShortVersionString` [#576](https://github.com/nwjs-community/nw-builder/pull/576)
|
|
71
|
-
|
|
72
|
-
## [3.7.2] - 2022-06-02
|
|
73
|
-
|
|
74
|
-
## Added
|
|
75
|
-
|
|
76
|
-
- Added options `buildType`, `macCredits`, `macPlist`, `zip`, `zipOptions` to CLI [#575](https://github.com/nwjs-community/nw-builder/pull/575)
|
|
77
|
-
|
|
78
|
-
## Changed
|
|
79
|
-
|
|
80
|
-
- Update lint command [#575](https://github.com/nwjs-community/nw-builder/pull/575)
|
|
81
|
-
|
|
82
|
-
## [3.7.1] - 2022-06-02
|
|
83
|
-
|
|
84
|
-
## Changed
|
|
85
|
-
|
|
86
|
-
- Add `EditorConfig` [#574](https://github.com/nwjs-community/nw-builder/pull/574)
|
|
87
|
-
- Fix build step for Windows x64 platform [#572](https://github.com/nwjs-community/nw-builder/pull/572)
|
|
88
|
-
- Refactor `platforms` object [#571](https://github.com/nwjs-community/nw-builder/pull/571)
|
|
89
|
-
|
|
90
|
-
## [3.7.0] - 2022-05-30
|
|
91
|
-
|
|
92
|
-
## Added
|
|
93
|
-
|
|
94
|
-
- Optional zip file merging for Windows and Linux [#567](https://github.com/nwjs-community/nw-builder/pull/567)
|
|
95
|
-
- Add code of conduct [#560](https://github.com/nwjs-community/nw-builder/pull/560)
|
|
96
|
-
|
|
97
|
-
## Changed
|
|
98
|
-
|
|
99
|
-
- Update contributing guide [#569](https://github.com/nwjs-community/nw-builder/pull/569)
|
|
100
|
-
- Switch from TypeScript to JSDocs [#568](https://github.com/nwjs-community/nw-builder/pull/568)
|
|
101
|
-
- Set window icon with `rcedit` [#566](https://github.com/nwjs-community/nw-builder/pull/566)
|
|
102
|
-
- Refactor `checkCache` [#565](https://github.com/nwjs-community/nw-builder/pull/565)
|
|
103
|
-
- Simplify demo
|
|
104
|
-
- Refactor `detectCurrentPlatform` [#564](https://github.com/nwjs-community/nw-builder/pull/564)
|
|
105
|
-
- Update dependencies [#561](https://github.com/nwjs-community/nw-builder/pull/561) [#532](https://github.com/nwjs-community/nw-builder/pull/532)
|
|
106
|
-
|
|
107
|
-
## Removed
|
|
108
|
-
|
|
109
|
-
## [3.6.0] - 2022-05-18
|
|
110
|
-
|
|
111
|
-
### Added
|
|
112
|
-
|
|
113
|
-
- GitHub Actions for CICD [#552](https://github.com/nwjs-community/nw-builder/pull/552)
|
|
114
|
-
- Support multiple locales on OSX [#389](https://github.com/nwjs-community/nw-builder/pull/389)
|
|
115
|
-
- Pull request and issue template [#553](https://github.com/nwjs-community/nw-builder/pull/553)
|
|
116
|
-
|
|
117
|
-
### Changed
|
|
118
|
-
|
|
119
|
-
- Dependencies [#550](https://github.com/nwjs-community/nw-builder/pull/550)
|
|
120
|
-
- Documentation [#540](https://github.com/nwjs-community/nw-builder/pull/540) [#553](https://github.com/nwjs-community/nw-builder/pull/553) [#555](https://github.com/nwjs-community/nw-builder/pull/555)
|
|
121
|
-
- Improve run mode by detecting current platform to prevent downloading additional binaries
|
|
122
|
-
|
|
123
|
-
### Removed
|
|
124
|
-
|
|
125
|
-
- Travis
|
|
126
|
-
- AppVeyor
|
|
127
|
-
- JSHint
|
|
128
|
-
- EditorConfig
|
|
129
|
-
|
|
130
|
-
## [3.5.7]
|
|
131
|
-
|
|
132
|
-
### Security
|
|
133
|
-
|
|
134
|
-
- Source platform overrides module into the project instead of it being an extenal dependency. This helped us get rid of a vulnerable lodash version. See https://github.com/nwjs-community/nw-builder/issues/500
|
|
135
|
-
|
|
136
|
-
## [3.5.1] - 2017-10-19
|
|
137
|
-
|
|
138
|
-
### Added
|
|
139
|
-
|
|
140
|
-
- Add option.winVersionString for accurate process name. See https://github.com/nwjs-community/nw-builder/pull/459.
|
|
141
|
-
|
|
142
|
-
### Fixed
|
|
143
|
-
|
|
144
|
-
- Small platform overrides fix. See https://github.com/nwjs-community/nw-builder/pull/477/files.
|
|
145
|
-
|
|
146
|
-
## [3.4.1] - 2017-06-05
|
|
147
|
-
|
|
148
|
-
### Removed
|
|
149
|
-
|
|
150
|
-
- The `bluebird` dependency. We're now using native promises instead.
|
|
151
|
-
|
|
152
|
-
## [3.4.0] - 2017-05-28
|
|
153
|
-
|
|
154
|
-
### Added
|
|
155
|
-
|
|
156
|
-
- If using the package programmatically and it's out of date, a message will be shown (this was always the case for the CLI).
|
|
157
|
-
- There is now a README in every directory (with at least a single sentence summarizing the directory) to help with onboarding contributors.
|
|
158
|
-
|
|
159
|
-
### Changed
|
|
160
|
-
|
|
161
|
-
- Some dependencies are updated.
|
|
162
|
-
|
|
163
|
-
### Removed
|
|
164
|
-
|
|
165
|
-
- `osx32` is removed from the default list of platforms. Thanks to [@preaction](https://github.compreaction) (PR [#439](https://github.com/nwjs-community/nw-builder/pull/439)).
|
|
166
|
-
- An unnecessary `rcedit` dependency is removed.
|
|
167
|
-
|
|
168
|
-
### Fixed
|
|
169
|
-
|
|
170
|
-
- For Node 7+ users, you won't see a `os.tmpDir` deprecation warning anymore.
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
## Old format
|
|
175
|
-
|
|
176
|
-
- 2017-05-22 `3.2.3` Fix for caching when a version is specified (thanks @piwonesien for the help).
|
|
177
|
-
- 2017-05-20 `3.2.2` Fix: when using the `nwbuild` in run mode, the `-p` option was ignored and the current platform was always used.
|
|
178
|
-
- 2017-05-16 `3.2.1` Fix: NW.js 0.22.0+ apps didn't open.
|
|
179
|
-
- 2017-02-12 `3.2.0` Defaults to HTTPS now, added `manifestUrl` option, and bumped some dependencies.
|
|
180
|
-
- 2016-10-09 `3.1.2` Fix for passing array as files option when running app (plus some security fixes).
|
|
181
|
-
- 2016-10-09 `3.1.1` Fix for flavor feature when using CLI.
|
|
182
|
-
- 2016-09-14 `3.1.0` Ability to select any flavor of NW.js, not just `sdk`.
|
|
183
|
-
- 2016-08-28 `3.0.0` bumping graceful-fs-extra dependency to 2.0.0.
|
|
184
|
-
- 2016-08-14 `2.2.7` fix for macIcns option when using NW.js 0.12.3
|
|
185
|
-
- 2016-07-31 `2.2.6` fix for OS X caching
|
|
186
|
-
- 2016-07-03 `2.2.5` fix for update-notifier usage in bin
|
|
187
|
-
- 2016-07-03 `2.2.4` fix for syntax error in CLI
|
|
188
|
-
- 2016-07-02 `2.2.3` a few small fixes for the run option and more
|
|
189
|
-
- 2016-07-02 `2.2.2` fix for cache check of some legacy versions
|
|
190
|
-
- 2016-07-02 `2.2.1` supports newer NW.js versions (via http://nwjs.io/versions.json), plus other fixes.
|
|
191
|
-
- 2015-12-18 `2.2.0` added `zip` option.
|
|
192
|
-
- 2015-12-06 `2.1.0` added `cacheDir` command-line option, fix for no info being passed back, etc.
|
|
193
|
-
- 2015-06-28 `2.0.2` put upper bound to semver check for windows.
|
|
194
|
-
- 2015-06-14 `2.0.1` safer validation of versions.
|
|
195
|
-
- 2015-06-14 `2.0.0` changed to nw-builder, etc.
|
|
196
|
-
- 2015-05-05 `1.0.12` when using latest NW.js version, it's first validated that it's not an alpha version (fixes [#222](https://github.com/nwjs/nw-builder/issues/222)). Plus a fix for the `winIco` & `macIcns` command line options
|
|
197
|
-
- 2015-01-29 `1.0.8` fixed EMFILE errors (see [#147](https://github.com/nwjs/nw-builder/issues/147) [#148](https://github.com/nwjs/nw-builder/pull/148))
|
|
198
|
-
- 2015-01-21 `1.0.7` fixed about screen when copyright is not supplied
|
|
199
|
-
- 2015-01-15 `1.0.6` fixed downloads for nw.js version 0.12.0-alpha1
|
|
200
|
-
- 2015-01-15 `1.0.5` fixed downloads for NW.js versions < 0.12.0-alpha
|
|
201
|
-
- 2014-12-12 `1.0.0` 64-bit support, improved platform-overrides and no more EMFILE errors.
|
|
202
|
-
- 2014-12-07 `0.4.0` macPlist CFBundleIdentifier is generated from `package.json` (see [#131](https://github.com/nwjs/nw-builder/pull/131))
|
|
203
|
-
- 2014-11-14 `0.3.0` macPlist option improvements (see [#96](https://github.com/nwjs/nw-builder/pull/96))
|
|
204
|
-
- 2014-10-30 `0.2.0` adds support for platform-specific manifest overrides (see [#94](https://github.com/nwjs/nw-builder/pull/94))
|
|
205
|
-
- 2014-08-19 `0.1.2` adds a progress bar to downloads, fixes downloading through a proxy, fixed winIco, bug fixes
|
|
206
|
-
- 2014-08-01 `0.1.0` use app filename for generated executables, optimized version checking, (known issue: `winIco` on windows)
|
|
207
|
-
- 2014-07-31 `0.0.4` fixed compatibility with nodewebkit 0.10.0
|
|
208
|
-
- 2014-04-20 Added run option, bug fixes
|
|
209
|
-
- 2014-04-13 Preview Release
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# "No Ideologies" Code of Conduct
|
|
2
|
-
|
|
3
|
-
The following are the guidelines we expect our community members and maintainers to follow.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Terminology and Scope
|
|
8
|
-
|
|
9
|
-
**What defines a "maintainer"?**
|
|
10
|
-
|
|
11
|
-
- A maintainer is anyone that interacts with the community on behalf of this project. Amount of code written is not a qualifier. A maintainer may include those who solely help in support roles such as in resolving issues, improving documentation, administrating or moderating forums/chatrooms, or any other non-coding specific roles. Maintainers also include those that are responsible for the building and upkeep of the project.
|
|
12
|
-
|
|
13
|
-
**What defines a "community member"?**
|
|
14
|
-
|
|
15
|
-
- Anyone interacting with this project directly, including maintainers.
|
|
16
|
-
|
|
17
|
-
**What is the scope of these guidelines?**
|
|
18
|
-
|
|
19
|
-
- These guidelines apply only to this project and forms of communication directly related to it, such as issue trackers, forums, chatrooms, and in person events specific to this project. If a member is violating these guidelines outside of this project or on other platforms, that is beyond our scope and any grievances should be handled on those platforms.
|
|
20
|
-
|
|
21
|
-
**Discussing the guidelines:**
|
|
22
|
-
|
|
23
|
-
- Discussions around these guidelines, improving, updating, or altering them, is permitted so long as the discussions do not violate any existing guidelines.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Guidelines
|
|
28
|
-
|
|
29
|
-
### Guidelines for community members
|
|
30
|
-
|
|
31
|
-
This project is technical in nature and not based around any particular non-technical ideology. As such, communication that is based primarily around ideologies unrelated to the technologies used by this repository are not permitted.
|
|
32
|
-
|
|
33
|
-
Any discussion or communication that is primarily focused around an ideology, be it about race, gender, politics, religion, or anything else non-technical, is not allowed. Everyone has their own ideological preferences, beliefs, and opinions. We do not seek to marginalize, exclude, or judge anyone for their ideologies. To prevent conflict between those with differing or opposing ideologies, all communication on these subjects are prohibited. Some discussions around these topics may be important, however this project is not the proper channel for these discussions.
|
|
34
|
-
|
|
35
|
-
### Guidelines for maintainers
|
|
36
|
-
|
|
37
|
-
- Maintainers must abide by the same rules as all other community members mentioned above. However, in addition, maintainers are held to a higher standard, explained below.
|
|
38
|
-
- Maintainers should answer all questions politely.
|
|
39
|
-
- If someone is upset or angry about something, it's probably because it's difficult to use, so thank them for bringing it to your attention and address ways to solve the problem. Maintainers should focus on the content of the message, and not on how it was delivered.
|
|
40
|
-
- A maintainer should seek to update members when an issue they brought up is resolved.
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## Appropriate response to violations
|
|
45
|
-
|
|
46
|
-
How to respond to a community member or maintainer violating a guideline.
|
|
47
|
-
|
|
48
|
-
1. If an issue is created that violates a guideline a maintainer should close and lock the issue, explaining "This issue is in violation of our code of conduct. Please review it before posting again." with a link to this document.
|
|
49
|
-
1. If a member repeatedly violates the guidelines established in this document, they should be politely warned that continuing to violate the rules may result in being banned from the community. This means revoking access and support to interactions relating directly to the project (issue trackers, chatrooms, forums, in person events, etc.). However, they may continue to use the technology in accordance with its license.
|
|
50
|
-
1. If a maintainer is in violation of a guideline, they should be informed of such with a link to this document. If additional actions are required of the maintainer but not taken, then other maintainers should be informed of these inactions.
|
|
51
|
-
1. If a maintainer repeatedly violates the guidelines established in this document, they should be politely warned that continuing to violate the rules may result in being banned from the community. This means revoking access and support to interactions relating directly to the project (issue trackers, chatrooms, forums, in person events, etc.). However, they may continue to use the technology in accordance with its license. In addition, future contributions to this project may be ignored as well.
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
Based on version 1.0.3 from https://github.com/CodifiedConduct/coc-no-ideologies
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
### Issue Type
|
|
2
|
-
|
|
3
|
-
- [ ] Bug Fix
|
|
4
|
-
- [ ] Feature
|
|
5
|
-
- [ ] Other
|
|
6
|
-
|
|
7
|
-
### Current/Missing Behaviour
|
|
8
|
-
|
|
9
|
-
### Expected/Proposed Behaviour
|
|
10
|
-
|
|
11
|
-
### Additional Info
|
|
12
|
-
|
|
13
|
-
- Operating System:
|
|
14
|
-
- Node version:
|
|
15
|
-
- NW.js version:
|
|
16
|
-
- Repro link:
|
|
17
|
-
- ...
|
package/.github/dependabot.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "npm" # See documentation for possible values
|
|
9
|
-
directory: "/" # Location of package manifests
|
|
10
|
-
schedule:
|
|
11
|
-
interval: "daily"
|
|
12
|
-
- package-ecosystem: "github-actions" # See documentation for possible values
|
|
13
|
-
directory: ".github/" # Location of package manifests
|
|
14
|
-
schedule:
|
|
15
|
-
interval: "daily"
|