-
Notifications
You must be signed in to change notification settings - Fork 85
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
Precompiled binaries #96
Comments
I think I can reuse part of the configuration I wrote to compile libui binaries on travis & appveyor. |
How would different node versions get handled? |
I'll install (or hopefully it's already installed) nvm and I'll use that to switch node version and build binaries on every version of the node API we support. I think there are some tools that can help in the process... New node versions will be included as they are published, we'll have to trigger the CI build doing some commits... |
Not sure if nbind allows that or how N-API is supported by older node versions. |
Yes, that would be awesome because it would solve the node version problem, but nbind unfortunately does not support it. We can try to ask for the feature, but I think it would be really a big job. Also, I started months ago to do some experiments building a tool similar to nbind but that uses NAPI instead of NAN. But the tool is very rough ATM. If you want to give it a look, I can add you to the private repo where I'm keeping it. This tool could probably be simplified by only implement features needed by libui-node. Another advantage (but that will add even more work to do) is that using N-API allows to bind directly to C functions, so we can avoid the C++ wrappers at all, and implement a public API directly in JavaScript. |
Related: parro-it/libui-download#3 |
I start to experiment with a N-API version of the library here: https://github.com/parro-it/libui-napi There, I setup prebuilt binaries using Travis & AppVeyor. You could see a first release on the repo. There is still a problem on CI: when you push a new tag, the publish phase is triggered, and if the build for other commits trigger to early, it try to download partially built binaries and fails. I'm also rewriting documentation using same tools as proton-native, and add tests using screenshot-tester. The idea is to continue the experiment implementing windows, multiline entries and boxes,
Until now, I already find some benefits of using N-API
|
Also node 8 & Sierra! |
... would shorten install time drastically.
The text was updated successfully, but these errors were encountered: