Skip to content

Instantly share code, notes, and snippets.

@mtigas
Last active April 10, 2021 08:38
Show Gist options
  • Save mtigas/e4157b7bdbb77e87506ceff2c8f19826 to your computer and use it in GitHub Desktop.
Save mtigas/e4157b7bdbb77e87506ceff2c8f19826 to your computer and use it in GitHub Desktop.
[macos] homebrew-installed signal w/v2 group support (fixes libzkgroup warning)
#!/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
@Lazare-42
Copy link

Tha'ts awesome, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment