NodeJS Mobile prebuilds for sodium-native
- Node 18
- Android NDK (CI uses version 27.2.12479018)
- (optional) exported
ANDROID_NDK_HOME
environment variable
- (optional) exported
Should be clear enough to follow the reusable workflow steps but in summary:
- Download the npm tarball package and unzip e.g.
npm pack sodium-native@latest | xargs tar -zxvf
- Navigate to unzipped directory:
cd package
- Install dependencies:
npm install
- Install patched
cmake-napi
:npm install cmake-napi@github:digidem/cmake-napi-nodejs-mobile
- Install bare-make globally:
npm install -g bare-make@latest
- Generate, build and install:
bare-make generate --platform android --arch arm64 bare-make build bare-make install
- Navigate to the Generate Prebuilds workflow
- Manually dispatch the worflow with the version you want to build, ensuring that "Publish Release" is checked.
We welcome contributions to this repository. If you have an idea for a new feature or have found a bug, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.