add default arch amd64
authorAJ ONeal <aj@therootcompany.com>
Sun, 3 May 2020 10:52:48 +0000 (10:52 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sun, 3 May 2020 10:52:48 +0000 (10:52 +0000)
pathman/releases.js

index 26d23c211a408a75bc709b809e641b74572675a2..be23f1390115058dc0fd6bb7664fb95255694f45 100644 (file)
@@ -7,6 +7,12 @@ var baseurl = 'https://git.coolaj86.com';
 
 module.exports = function (request) {
   return github(request, owner, repo, baseurl).then(function (all) {
+    all.releases.forEach(function (rel) {
+      // TODO name uploads with arch, duh
+      if (!rel.arch) {
+        rel.arch = 'amd64';
+      }
+    });
     return all;
   });
 };