oracledb-electron-builder
is an example of an electron app that uses
electron-builder to build the
native module oracledb.
-
See the requirements for node-gyp
-
Use the source package from github. The package distributed via
npm
would install a prebuilt binary built against Node (in Windows, electron fails when this prebuilt binary is required/imported):npm install --save https://github.com/oracle/node-oracledb/releases/download/v2.2.0/oracledb-src-2.2.0.tgz
npm install
Note that npm install
invokes electron-builder install-app-deps
at the
postinstall step (as defined in package.json
).
npm start
npm run pack
The installer is installer in folder release
.