Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw missing symbol called on macOs #137

Open
future-mine opened this issue Nov 21, 2022 · 3 comments
Open

Throw missing symbol called on macOs #137

future-mine opened this issue Nov 21, 2022 · 3 comments

Comments

@future-mine
Copy link

future-mine commented Nov 21, 2022

const decompress = (src: string, dest: string) => {
    return new Promise<void>((resolve, reject) => {
      const archive = path.join(dest, JDK_NAME);

      const input = fs.createReadStream(src);
      const output = fs.createWriteStream(archive);
      const decompressor = lzma.createDecompressor();
      input.pipe(decompressor).pipe(output);
      output.on("finish", () => {
        Utils.unzip(archive, dest)
          .then(() => resolve())
          .catch((e) => reject(e));
      });
      output.on("error", (e) => reject(e));
    });
  };

I made decompress method. It works well for windows and linux.
But on mac os, it throws Symbol not found.
at this line

input.pipe(decompressor).pipe(output);

dyId[21296]: missing symbol called

@future-mine future-mine changed the title Throw symbol not found on macOs Throw missing symbol called on macOs Nov 21, 2022
@carlocorradini
Copy link

carlocorradini commented Feb 2, 2023

Any update? 😥

@carlocorradini
Copy link

@future-mine See #127

@ChiChou
Copy link

ChiChou commented May 25, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants