Added account for packages that don't specify arch for macos
authorSergi B <bernausergi@gmail.com>
Mon, 26 Oct 2020 10:35:54 +0000 (11:35 +0100)
committerSergi B <bernausergi@gmail.com>
Mon, 26 Oct 2020 10:35:54 +0000 (11:35 +0100)
_webi/normalize.js

index 0e06bcba72f12f9e9143a32a6f0a3b98e8dd74c9..07b08c76e910512e2b1a156c2f41a2da21084efb 100644 (file)
@@ -80,7 +80,12 @@ function normalize(all) {
           rel.arch = arch;
           return true;
         }
-      })[0];
+      });
+    }
+    if (!rel.arch) {
+      if ('macos' === rel.os) {
+        rel.arch = 'amd64';
+      }
     }
     supported.arches[rel.arch] = true;