Open
Description
Hi, I'm building an Electron app with SQLCipher. Following the README instructions for SQLCipher, everything worked in development, but when I deployed the new version of my app, it failed because SQLCipher was dynamically linked and my users haven't installed SQLCipher on their computer.
I learned through trial and error that if I modify ./node_modules/sqlite3/binding.gyp to change:
"libraries": [
"-l<(sqlite_libname)"
],
to
"libraries": [
"<(sqlite)/lib/libsqlcipher.a"
],
That static linking seems to be enabled.
Would it be a valid feature to add a --static-linking flag to enable this? I.e. I could then run something like...
npm rebuild sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix` --static-linking --runtime=electron --target=2.0.11 --dist-url=https://atom.io/download/electron```
Thoughts?
Resources: