2015-07-24 16:11:10 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2015-07-21 18:58:34 -06:00
|
|
|
#brew options sqlcipher
|
|
|
|
|
#brew install sqlcipher --with-fts
|
|
|
|
|
echo STOP
|
|
|
|
|
echo You must manually install sqlcipher
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
|
|
export LDFLAGS="-L`brew --prefix`/opt/sqlcipher/lib"
|
|
|
|
|
export CPPFLAGS="-I`brew --prefix`/opt/sqlcipher/include"
|
|
|
|
|
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`
|
|
|
|
|
|
|
|
|
|
node -e 'require("sqlite3")'
|