Skip to content

(linux64) JavaScriptCore does not extract archive to ~/.jsvu/bin #172

@guest271314

Description

@guest271314

Looking at extract.js installer.installScript({...}) is not executed and the download that winds up in /tmp ("jsvutmpf") is not extracted to ~/.jsvu

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;
			}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions