switch pathman host
[webi-installers/.git] / pathman / releases.js
index 26d23c211a408a75bc709b809e641b74572675a2..c4d90d253eb481bb6aae201704fb83172e67cf49 100644 (file)
@@ -1,18 +1,24 @@
 'use strict';
 
 var github = require('../_common/gitea.js');
-var owner = 'coolaj86';
-var repo = 'go-pathman';
-var baseurl = 'https://git.coolaj86.com';
+var owner = 'root';
+var repo = 'pathman';
+var baseurl = 'https://git.rootprojects.org';
 
 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;
   });
 };
 
 if (module === require.main) {
   module.exports(require('@root/request')).then(function (all) {
-    console.log(JSON.stringify(all, null, 2));
+    console.info(JSON.stringify(all, null, 2));
   });
 }