diff options
Diffstat (limited to 'net-im/signal-desktop/get_deps.sh')
-rw-r--r-- | net-im/signal-desktop/get_deps.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-im/signal-desktop/get_deps.sh b/net-im/signal-desktop/get_deps.sh index cccc2a4c122a..284303f8693a 100644 --- a/net-im/signal-desktop/get_deps.sh +++ b/net-im/signal-desktop/get_deps.sh @@ -18,3 +18,15 @@ electron_version=$(grep '"electron":' /tmp/package.json | awk -F ":" '{print $2} echo "ELECTRON_VERSION= ${electron_version}" bsqlite3_version=$(grep '@signalapp/better-sqlite3' /tmp/package.json | awk -F ":" '{print $2}' | sed -E 's#("|,| )##g') + +fetch -qo /tmp/download.js https://raw.githubusercontent.com/signalapp/better-sqlite3/v${bsqlite3_version}/deps/download.js +BASE_URI=https://build-artifacts.signal.org/desktop +HASH=$(awk /"HASH ="/'{print $4}' /tmp/download.js | sed -e 's#;##g' -e "s#'##g") +SQLCIPHER_VERSION=$(awk /"SQLCIPHER_VERSION ="/'{print $4}' /tmp/download.js | sed -e 's#;##g' -e "s#'##g") +OPENSSL_VERSION=$(awk /"OPENSSL_VERSION ="/'{print $4}' /tmp/download.js | sed -e 's#;##g' -e "s#'##g") +TOKENIZER_VERSION=$(awk /"TOKENIZER_VERSION ="/'{print $4}' /tmp/download.js | sed -e 's#;##g' -e "s#'##g") +TAG="${SQLCIPHER_VERSION}--${OPENSSL_VERSION}--${TOKENIZER_VERSION}" +echo "Signal-FTS5-Extension= ${TOKENIZER_VERSION}" +echo "SQLCIPHER=sqlcipher-${TAG}-${HASH}" | portedit merge -i Makefile + +echo "fetch https://build-artifacts.signal.org/desktop/sqlcipher-${TAG}-${HASH}.tar.gz" |