Last active
August 25, 2021 23:52
-
-
Save jsakas/41898fca02efe2107ce669c0de53149c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# | |
# Install Google's modified scrypt package for Firebase auth on macOS. | |
# https://github.com/firebase/scrypt | |
# | |
# Last tested on macOS Big Sur 11.3.1 (20E241) | |
# | |
brew install autoconf automake libtool | |
curl -sL https://github.com/firebase/scrypt/archive/master.tar.gz | tar xz | |
cd scrypt-master | |
autoreconf -i | |
if hash brew 2>/dev/null; then | |
opensslPath=$(brew --prefix openssl) | |
export CFLAGS="$CFLAGS -I$opensslPath/include" | |
export LDFLAGS="$LDFLAGS -L$opensslPath/lib" | |
fi | |
./configure | |
make | |
sudo cp ./scrypt /usr/local/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment