npm-pkgbuild 7.28.1 → 7.28.2
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 +1 -1
- package/src/output/deb.mjs +15 -9
package/package.json
CHANGED
package/src/output/deb.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join } from "path";
|
|
2
|
+
import { createReadStream } from "fs";
|
|
2
3
|
import { execa } from "execa";
|
|
3
4
|
import {
|
|
4
5
|
EmptyContentEntry,
|
|
@@ -11,7 +12,12 @@ import {
|
|
|
11
12
|
} from "content-entry-transform";
|
|
12
13
|
import { keyValueTransformer } from "key-value-transformer";
|
|
13
14
|
import { Packager } from "./packager.mjs";
|
|
14
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
copyEntries,
|
|
17
|
+
fieldProvider,
|
|
18
|
+
extractFunctions,
|
|
19
|
+
utf8StreamOptions
|
|
20
|
+
} from "../util.mjs";
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* map install hook named from arch to deb
|
|
@@ -57,14 +63,6 @@ export class DEB extends Packager {
|
|
|
57
63
|
options
|
|
58
64
|
);
|
|
59
65
|
|
|
60
|
-
transformer.push(
|
|
61
|
-
createPropertiesTransformer(
|
|
62
|
-
entry => (entry.name.match(/DEBIAN\/.*(inst|rm)/) ? true : false),
|
|
63
|
-
{ mode: { value: 0o775 } },
|
|
64
|
-
"mode"
|
|
65
|
-
)
|
|
66
|
-
);
|
|
67
|
-
|
|
68
66
|
if (properties.hooks) {
|
|
69
67
|
for await (const f of extractFunctions(
|
|
70
68
|
createReadStream(properties.hooks, utf8StreamOptions)
|
|
@@ -92,6 +90,14 @@ export class DEB extends Packager {
|
|
|
92
90
|
}
|
|
93
91
|
}
|
|
94
92
|
|
|
93
|
+
transformer.push(
|
|
94
|
+
createPropertiesTransformer(
|
|
95
|
+
entry => (entry.name.match(/DEBIAN\/.*(inst|rm)/) ? true : false),
|
|
96
|
+
{ mode: { value: 0o775 } },
|
|
97
|
+
"mode"
|
|
98
|
+
)
|
|
99
|
+
);
|
|
100
|
+
|
|
95
101
|
const fp = fieldProvider(properties, fields);
|
|
96
102
|
const debianControlName = "DEBIAN/control";
|
|
97
103
|
|