linroid / libnode

Build Node.js shared library for Android and Desktop
15 stars 1 forks source link

libnode

Build v16.14.0

Build Node.js shared library for multiple platforms

Build from source

Upgrade Node.js

 cd node

Modify Node.js

Build scripts in this repository use patch files(under the patches directory) to apply changes for Node.js, so the Node.js upgrade work can be easier and it is intuitive to know what changes we've made.

If you need to do some changes in node's codebase, you should generate patches files and commit *.patch files instead of commiting changes directly.

Before doing your change, make sure your local changes is up-to-date:

 git pull origin main
 # your local changes under `node` directory will be dropped
 ./scripts/patch.sh apply -f

Now you can edit any files in Node.js under the node directory, to commit your changes, you need to update the patch files:

 ./scripts/patch.sh generate