mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 20:16:23 +00:00
wip: reorg some vars
This commit is contained in:
@@ -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
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user