node-sqlcipher/deps/sqlcipher/update.sh
Fedor Indutny 9d3a85329e v1.0.0
2025-03-12 13:44:29 -07:00

19 lines
567 B
Bash
Executable File

#!/bin/sh
set -e
set -x
tag=${1?Pass a valid sqlcipher version as an argument}
rm -rf .tmp/sqlcipher
git clone --branch $tag --filter=blob:none git@github.com:sqlcipher/sqlcipher.git .tmp/sqlcipher
cd .tmp/sqlcipher
git apply ../../patches/sqlcipher/custom-crypto-provider.diff
git apply ../../patches/sqlcipher/fix-constant-expression-for-msvc-arm64-6c103aee6f146869.diff
./configure --enable-update-limit
make sqlite3.h sqlite3.c sqlite3ext.h shell.c
cd -
cp -rf .tmp/sqlcipher/sqlite3.h ./
cp -rf .tmp/sqlcipher/sqlite3.c ./
cp -rf .tmp/sqlcipher/LICENSE.md ./