Skip to content

Instantly share code, notes, and snippets.

@ahnerd
Last active August 4, 2016 01:40
Show Gist options
  • Save ahnerd/053f31a95eb193939957ac22a2a2bf0d to your computer and use it in GitHub Desktop.
Save ahnerd/053f31a95eb193939957ac22a2a2bf0d to your computer and use it in GitHub Desktop.
Use sqlite3 with Electron in Windows(http://www.techiediaries.com)
@echo off
cd /d %~dp0
cd /d node_modules\sqlite3
call npm install
call npm run prepublish
call node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-win32-ia32
call node-gyp rebuild --target=0.36.4 --arch=ia32 --target_platform=win32 --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-win32-ia32
cd /d %~dp0
exit /B 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment