-
Notifications
You must be signed in to change notification settings - Fork 60
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
Build libnode and publish nuget packages #107
Comments
I am going to work on implementing an ADO pipeline to publish libnode as a Nuget package. |
Are there already nuget packages for libnode or can I download the binaries somewhere? |
Not yet. @vmoroz was working on that but got busy with other priorities. |
Update: This is the latest known good branch for building a |
So far there seems to be no progress? |
The README says we can contact you to get a copy of libnode. Could you put it in a public Onedrive somewhere ? Thanks |
@vmoroz has been making some progress on this recently, but it's not ready yet. Sorry I cannot publish an unsigned binary built on my dev machine in any official location such as a GH release. But it's not too hard to build your own. Build instructions:
mkdir libnode
cd libnode
git clone https://github.com/jasongin/nodejs -b napi-libnode-v20.9.0 --single-branch .
|
It is recommended to put this instruction in the readme |
The info on the new docs site published a few days ago: I haven't updated the main README yet to link to that site, but I will soon. |
@glacasa @rocklau @jasongin
Assuming the app was built and published to /app in previous steps, and will do string baseDir = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "js");
string libnodePath = Path.Combine(baseDir, "libnode.so.115");
var nodejsPlatform = new NodejsPlatform(libnodePath); |
Thanks a lot. |
For embedding Node.js, we need to build
libnode
binaries for each supported platform, and publish the binaries as native nuget packages.Until the Node API embedding PR is merged, we'll need to build from a fork. And, it may require manually merging the PR changes into the target version of Node.js. I did that for Node.js v19.9 and v20.0 already:
https://github.com/jasongin/nodejs/tree/napi-libnode-v19.9.0
https://github.com/jasongin/nodejs/tree/napi-libnode-v20.0.0
(I tried to backport to v18, but the PR changes depended on significant updates in v19.)
Edit: Instructions for building
libnode
are at https://microsoft.github.io/node-api-dotnet/scenarios/dotnet-js.htmlThe text was updated successfully, but these errors were encountered: