wip: reorg some vars

This commit is contained in:
AJ ONeal
2023-12-31 02:29:04 -07:00
parent a249238af3
commit 9fa3ac5796
2 changed files with 2 additions and 6 deletions
+1 -4
View File
@@ -17,16 +17,14 @@ InstallerServer.serveInstaller = async function (
tag,
ext,
formats,
libc,
) {
let unameAgent = ua;
let projectName = pkg;
let [rel, tmplParams] = await InstallerServer.helper({
unameAgent,
projectName,
tag,
unameAgent,
formats,
libc,
});
Object.assign(tmplParams, {
baseurl,
@@ -46,7 +44,6 @@ InstallerServer.helper = async function ({
projectName,
tag,
formats,
libc,
}) {
console.log(`dbg: Installer User-Agent: ${unameAgent}`);
+1 -2
View File
@@ -82,11 +82,10 @@ Releases.get(path.join(process.cwd(), pkgdir)).then(async function (all) {
var formats = ['exe', 'xz', 'tar', 'zip', 'git'];
let [rel, opts] = await ServeInstaller.helper({
unameAgent: `${nodeOs}/${nodeOsRelease} ${nodeArch}/unknown ${nodeLibc}`,
projectName: pkgname,
tag: pkgtag || '',
unameAgent: `${nodeOs}/${nodeOsRelease} ${nodeArch}/unknown ${nodeLibc}`,
formats: formats,
libc: nodeLibc,
});
Object.assign(
{