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

OSX support #2

Closed
jhurliman opened this issue Aug 31, 2016 · 7 comments
Closed

OSX support #2

jhurliman opened this issue Aug 31, 2016 · 7 comments

Comments

@jhurliman
Copy link

Could this project bundle and make use of an OSX binary as well?

@albertdb
Copy link
Owner

albertdb commented Sep 1, 2016

Of course, but I don't have an OSX machine to build and test the OSX binary. If you could provide it, feel free to do a pull request after adding it to bin directory with filename zstd.macos or something like that. You can test it works by replacing zstd.linux64 binary, as the code assumes that an OS that is not Windows is Linux.

@luke3butler
Copy link

luke3butler commented Sep 2, 2016

A lot of us OSX users use brew to manage and update our zstd installation, so would it be possible to use the following to figure out if it's available?

if(process.platform === "darwin") {
cp.exec('which zstd', function (error, stdout, stderr) {
console.log( (error !== null) ? "zstd does not exist" : "zstd exists on this macOS installation" );
});
}

Edit: Either way, I created a PR with the darwin binary. I replaced the .linux64 with the one provided and didn't run into any bugs during my tests.

@jhurliman
Copy link
Author

Personally, I'd prefer if a bundled binary was used over a system binary. There's no way to control what version of zstd people will have installed locally, so no way to guarantee requiring a specific version of node-zstandard will execute a specific version of zstd at runtime.

Thanks for submitting this! Looking forward to being able to use it on OSX.

@albertdb
Copy link
Owner

albertdb commented Sep 4, 2016

I agree with @jhurliman. I've merged the pull request, later on I will perform the minor modifications required. Thanks for providing the binary.

@albertdb
Copy link
Owner

albertdb commented Sep 5, 2016

Done.

@albertdb albertdb closed this as completed Sep 5, 2016
@albertdb
Copy link
Owner

Hi @jhurliman and @luke3butler

I'm planning to release a new version with zstd 1.4.0 bundled. Could anyone of you please provide an OSX binary for this version?

Thanks!

@luke3butler
Copy link

luke3butler commented Apr 19, 2019

@albertdb Done. #7

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