npm-pkgbuild 7.4.0 → 7.4.1
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 +2 -1
- package/src/output/pkg.mjs +7 -9
- package/src/output/rpm.mjs +0 -1
package/package.json
CHANGED
package/src/output/deb.mjs
CHANGED
|
@@ -21,7 +21,8 @@ export class DEB extends Packager {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
get packageFileName() {
|
|
24
|
-
|
|
24
|
+
const p = this.properties;
|
|
25
|
+
return `${p.name}_${p.version}_${p.arch}${this.constructor.fileNameExtension}`;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
async execute(sources, options) {
|
package/src/output/pkg.mjs
CHANGED
|
@@ -42,6 +42,11 @@ export class PKG extends Packager {
|
|
|
42
42
|
return fields;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
get packageFileName() {
|
|
46
|
+
const p = this.properties;
|
|
47
|
+
return `${p.name}-${p.version}-${p.release}.${p.arch}${this.constructor.fileNameExtension}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
async execute(sources, options) {
|
|
46
51
|
const properties = this.properties;
|
|
47
52
|
const mandatoryFields = this.mandatoryFields;
|
|
@@ -83,6 +88,8 @@ package() {
|
|
|
83
88
|
}
|
|
84
89
|
];
|
|
85
90
|
|
|
91
|
+
const [meta,content] = split(transform(sources, transformers),);
|
|
92
|
+
|
|
86
93
|
await copyEntries(transform(sources, transformers), staging);
|
|
87
94
|
|
|
88
95
|
await execa("makepkg", ["-f"], { cwd: staging });
|
|
@@ -127,15 +134,6 @@ const fields = {
|
|
|
127
134
|
};
|
|
128
135
|
|
|
129
136
|
/*
|
|
130
|
-
if (pkg.repository) {
|
|
131
|
-
source = pkg.repository.url;
|
|
132
|
-
if (!source.startsWith("git+")) {
|
|
133
|
-
source = "git+" + source;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
directory = pkg.repository.directory ? "/" + pkg.repository.directory : "";
|
|
137
|
-
}
|
|
138
|
-
|
|
139
137
|
const properties = {
|
|
140
138
|
makedepends: "git"
|
|
141
139
|
};
|