case 'linux64': {
const installer = new Installer({
engine: binary,
path: tmpPath,
});
installer.installLibraryGlob('lib/*');
installer.installBinary({ 'bin/jsc': binary }, { symlink: false });
installer.installScript({
name: binary,
alias: alias,
generateScript: (targetPath) => {
console.log({ targetPath }); // Never printed
return `
#!/usr/bin/env bash
LD_LIBRARY_PATH="${targetPath}/lib" exec "${targetPath}/lib/ld-linux${
os === 'linux64' ? '-x86-64' : '' }.so.2" "${targetPath}/${binary}" "$@"
`;
}
});
break;
}
Looking at
extract.jsinstaller.installScript({...})is not executed and the download that winds up in/tmp("jsvutmpf") is not extracted to~/.jsvu