npm-pkgbuild 11.2.1 → 11.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "11.2.1",
3
+ "version": "11.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -47,9 +47,13 @@ export class DEBIAN extends Packager {
47
47
  return fields;
48
48
  }
49
49
 
50
- static async prepare() {
50
+ static async prepare(options,variant) {
51
51
  try {
52
52
  await execa("dpkg", ["--version"]);
53
+ if (variant?.arch) {
54
+ const uname = await execa("uname", ["-m"]);
55
+ return uname.stdout.match(variant.arch);
56
+ }
53
57
  return true;
54
58
  } catch {}
55
59