Add darwin version of sqlcipher v2.1.1

This commit is contained in:
Vury Leo
2015-01-20 12:03:44 +08:00
parent ca63c5a190
commit 49ff512437
+3 -2
View File
@@ -25,14 +25,15 @@ fi
KEY=$(echo -n "$imei$uin" | $MD5SUM | cut -b 1-7)
echo "KEY: $KEY"
uname | grep Darwin > /dev/null || os=linux && os=darwin
uname -m | grep x86_64 > /dev/null || version=32bit && version=64bit
echo "Use $version sqlcipher."
echo "Use $version sqlcipher of $os."
echo "Dump decoded database... "
echo "Don't worry about libcrypt.so version warning."
SQLCIPHER=./sqlcipher/$version
SQLCIPHER=./sqlcipher/$os/$version
export LD_LIBRARY_PATH=$SQLCIPHER
$SQLCIPHER/sqlcipher $MSGDB << EOF
PRAGMA key='$KEY';