Skip to content

Instantly share code, notes, and snippets.

@likai24
Last active March 15, 2018 16:18
Show Gist options
  • Save likai24/d9861a4d02a5df99b0c6bb767ca57df9 to your computer and use it in GitHub Desktop.
Save likai24/d9861a4d02a5df99b0c6bb767ca57df9 to your computer and use it in GitHub Desktop.
Building Electron with
sudo npm install node-gyp -g
sudo npm install sqlite3
cd node_modules/sqlite3
sudo node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.8-darwin-x64
sudo node-gyp rebuild --target=1.8.1 --arch=x64 --target_platform=darwin --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.8-darwin-x64
#ref
#https://stackoverflow.com/questions/38716594/electron-app-cant-find-sqlite3-module
#https://stackoverflow.com/questions/32406397/using-nodejs-plugins-in-elelectron/32415283
#https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md
#https://gist.github.com/jonataswalker/b5a5c008cb92a4721b1e83a2b3b22dc7
#https://github.com/nodejs/node-gyp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment