npm-pkgbuild 7.3.2 → 7.3.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/package.json +6 -6
- package/src/output/deb.mjs +10 -7
- package/src/output/pkg.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"aggregate-async-iterator": "^1.1.7",
|
|
42
42
|
"commander": "^8.3.0",
|
|
43
|
-
"content-entry": "^2.
|
|
44
|
-
"content-entry-filesystem": "^3.
|
|
45
|
-
"execa": "^
|
|
43
|
+
"content-entry": "^2.9.6",
|
|
44
|
+
"content-entry-filesystem": "^3.1.9",
|
|
45
|
+
"execa": "^6.0.0",
|
|
46
46
|
"expression-expander": "^7.0.9",
|
|
47
47
|
"globby": "^12.0.2",
|
|
48
48
|
"iterable-string-interceptor": "^1.0.8",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"ava": "^3.15.0",
|
|
56
56
|
"c8": "^7.10.0",
|
|
57
57
|
"documentation": "^13.2.5",
|
|
58
|
-
"semantic-release": "^18.0.
|
|
58
|
+
"semantic-release": "^18.0.1",
|
|
59
59
|
"stream-buffers": "^3.0.2"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
|
-
"node": ">=16.
|
|
62
|
+
"node": ">=16.13.0"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|
package/src/output/deb.mjs
CHANGED
|
@@ -3,16 +3,18 @@ import { tmpdir } from "os";
|
|
|
3
3
|
import { createWriteStream } from "fs";
|
|
4
4
|
import { mkdtemp, mkdir, chmod } from "fs/promises";
|
|
5
5
|
import { pipeline } from "stream/promises";
|
|
6
|
-
import execa from "execa";
|
|
6
|
+
import { execa } from "execa";
|
|
7
7
|
import { EmptyContentEntry } from "content-entry";
|
|
8
8
|
import { Packager } from "./packager.mjs";
|
|
9
9
|
import { keyValueTransformer } from "../key-value-transformer.mjs";
|
|
10
10
|
|
|
11
|
+
const executableAttributes = { chmod: "0775" };
|
|
12
|
+
|
|
11
13
|
const permissions = {
|
|
12
|
-
"DEBIAN/preinst":
|
|
13
|
-
"DEBIAN/postinst":
|
|
14
|
-
"DEBIAN/prerm":
|
|
15
|
-
"DEBIAN/postrm":
|
|
14
|
+
"DEBIAN/preinst": executableAttributes,
|
|
15
|
+
"DEBIAN/postinst": executableAttributes,
|
|
16
|
+
"DEBIAN/prerm": executableAttributes,
|
|
17
|
+
"DEBIAN/postrm": executableAttributes
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
export class Deb extends Packager {
|
|
@@ -68,8 +70,9 @@ export class Deb extends Packager {
|
|
|
68
70
|
if (entry.name === "DEBIAN/control") {
|
|
69
71
|
debianControlEntry = entry;
|
|
70
72
|
} else {
|
|
73
|
+
console.log("ENTRY", entry.name, entry.basename);
|
|
71
74
|
await pipeline(
|
|
72
|
-
await entry.
|
|
75
|
+
await entry.readStream,
|
|
73
76
|
createWriteStream(destName)
|
|
74
77
|
);
|
|
75
78
|
|
|
@@ -94,7 +97,7 @@ export class Deb extends Packager {
|
|
|
94
97
|
|
|
95
98
|
await pipeline(
|
|
96
99
|
keyValueTransformer(
|
|
97
|
-
await debianControlEntry.
|
|
100
|
+
await debianControlEntry.readStream,
|
|
98
101
|
controlProperties
|
|
99
102
|
),
|
|
100
103
|
createWriteStream(destName)
|
package/src/output/pkg.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { tmpdir } from "os";
|
|
|
3
3
|
import { finished } from "stream";
|
|
4
4
|
import { promisify } from "util";
|
|
5
5
|
import { mkdtemp, mkdir, chmod } from "fs/promises";
|
|
6
|
-
import execa from "execa";
|
|
6
|
+
import { execa } from "execa";
|
|
7
7
|
import { Packager } from "./packager.mjs";
|
|
8
8
|
import { quote } from "../util.mjs";
|
|
9
9
|
|