npm-pkgbuild 7.7.0 → 7.7.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 +3 -2
- package/src/output/pkg.mjs +5 -2
package/package.json
CHANGED
package/src/output/deb.mjs
CHANGED
|
@@ -58,7 +58,8 @@ export class DEB extends Packager {
|
|
|
58
58
|
|
|
59
59
|
await copyEntries(transform(sources, transformers), staging, expander, attributes);
|
|
60
60
|
|
|
61
|
-
await execa("dpkg", ["-b", staging, options.destination]);
|
|
61
|
+
const dpkg = await execa("dpkg", ["-b", staging, options.destination]);
|
|
62
|
+
//console.log(dpkg.stdout);
|
|
62
63
|
|
|
63
64
|
return join(options.destination, this.packageFileName);
|
|
64
65
|
}
|
|
@@ -81,7 +82,7 @@ const fields = {
|
|
|
81
82
|
Architecture: {
|
|
82
83
|
alias: "arch",
|
|
83
84
|
type: "string",
|
|
84
|
-
default: "
|
|
85
|
+
default: "all",
|
|
85
86
|
mandatory: true
|
|
86
87
|
},
|
|
87
88
|
Homepage: { alias: "homepage", type: "string" },
|
package/src/output/pkg.mjs
CHANGED
|
@@ -45,7 +45,7 @@ export class PKG extends Packager {
|
|
|
45
45
|
|
|
46
46
|
get packageFileName() {
|
|
47
47
|
const p = this.properties;
|
|
48
|
-
return `${p.name}-${p.version}-${p.release}
|
|
48
|
+
return `${p.name}-${p.version}-${p.release}-${p.arch}${this.constructor.fileNameExtension}`;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
async execute(sources, options, expander) {
|
|
@@ -101,7 +101,10 @@ package() {
|
|
|
101
101
|
expander
|
|
102
102
|
);
|
|
103
103
|
|
|
104
|
-
await execa("makepkg", ["-f"], {
|
|
104
|
+
await execa("makepkg", ["-f"], {
|
|
105
|
+
cwd: staging,
|
|
106
|
+
env: { PKGDEST: options.destination }
|
|
107
|
+
});
|
|
105
108
|
|
|
106
109
|
return join(options.destination, this.packageFileName);
|
|
107
110
|
}
|