nw-builder 4.0.8 → 4.0.9
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 +0 -1
- package/package.json +3 -3
- package/src/get/decompress.js +6 -6
- package/src/get/remove.js +1 -1
- package/src/nwbuild.js +1 -1
- package/src/run/execute.js +9 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.9",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"url": "https://github.com/nwutils/nw-builder.git"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"format": "prettier --write \"./**/*.{js,
|
|
32
|
+
"format": "prettier --write \"./**/*.{css,html,js,json,md}\"",
|
|
33
33
|
"lint": "eslint ./src",
|
|
34
34
|
"docs": "jsdoc ./src/nwbuild.js -d docs",
|
|
35
35
|
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
36
|
-
"test:e2e": "cd ./test/e2e && node bld.js",
|
|
36
|
+
"test:e2e": "cd ./test/e2e && node bld.js && node run.js",
|
|
37
37
|
"demo:cli": "cd ./test/e2e && node cli.js",
|
|
38
38
|
"demo:nix": "cd ./test/e2e && node nix.js",
|
|
39
39
|
"demo:osx": "cd ./test/e2e && node osx.js",
|
package/src/get/decompress.js
CHANGED
|
@@ -12,20 +12,20 @@ const decompress = (platform, outDir) => {
|
|
|
12
12
|
C: `${outDir}`,
|
|
13
13
|
})
|
|
14
14
|
.then(() => {
|
|
15
|
-
resolve(
|
|
15
|
+
resolve();
|
|
16
16
|
})
|
|
17
|
-
.catch(() => {
|
|
18
|
-
reject(
|
|
17
|
+
.catch((error) => {
|
|
18
|
+
reject(error);
|
|
19
19
|
});
|
|
20
20
|
} else {
|
|
21
21
|
extract(path.resolve(`${outDir}/nw.zip`), {
|
|
22
22
|
dir: path.resolve(`${outDir}`),
|
|
23
23
|
})
|
|
24
24
|
.then(() => {
|
|
25
|
-
resolve(
|
|
25
|
+
resolve();
|
|
26
26
|
})
|
|
27
|
-
.catch(() => {
|
|
28
|
-
reject(
|
|
27
|
+
.catch((error) => {
|
|
28
|
+
reject(error);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
});
|
package/src/get/remove.js
CHANGED
package/src/nwbuild.js
CHANGED
package/src/run/execute.js
CHANGED
|
@@ -20,6 +20,15 @@ const execute = (srcDir, nwPath, argv) => {
|
|
|
20
20
|
windowsHide: true,
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
+
nwProcess.on("nw_app_running", () => {
|
|
24
|
+
log.debug("Kill NW process after confirming that it runs in CI.");
|
|
25
|
+
nwProcess.kill("SIGKILL");
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
if (process.env.NODE_ENV !== "production") {
|
|
29
|
+
nwProcess.emit("nw_app_running");
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
nwProcess.on("close", () => {
|
|
24
33
|
resolve();
|
|
25
34
|
});
|