Last active
April 10, 2021 08:38
-
-
Save mtigas/e4157b7bdbb77e87506ceff2c8f19826 to your computer and use it in GitHub Desktop.
[macos] homebrew-installed signal w/v2 group support (fixes libzkgroup warning)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -x | |
brew install signal-cli || brew upgrade signal-cli | |
SIGNAL_LIBEXEC_LIBDIR="`brew --prefix signal-cli`/libexec/lib" | |
# zkgroup-java*.jar --- remove the linux x86_64 bundled lib | |
zip -d "${SIGNAL_LIBEXEC_LIBDIR}/"zkgroup-java-*.jar libzkgroup.so || true | |
# download libzkgroup.dylib from | |
# https://github.com/signalapp/zkgroup/releases | |
# https://github.com/signalapp/zkgroup/releases/tag/v0.7.2 | |
cd /tmp | |
curl -LO "https://github.com/signalapp/zkgroup/releases/download/v0.7.2/libzkgroup.dylib" | |
echo "cd476de9fb9d6deb449cb6f8c88e5dce15526e34c7af7164ac858b2623cb6dec9710d51ce4b822ff0a698da895c1262e5d2b9e88f71f2a82c7b831ebc25285e7 libzkgroup.dylib" | shasum -c - | |
# zkgroup-java*.jar --- bundle the freshly-download mac lib | |
zip -u "${SIGNAL_LIBEXEC_LIBDIR}/"zkgroup-java-*.jar ./libzkgroup.dylib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tha'ts awesome, thanks a lot!