mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Install OpenSSL via Homebrew on macOS
Since it is required. Note that we do *not* unsafely link the OpenSSL libraries into the system folders, as we instead patch .NET Core's libraries to find OpenSSL in the installed location.
This commit is contained in:
1 parent
6b582851d6
commit
e337d93720
1 file changed
+13
@@ -98,6 +98,19 @@ case "$OSTYPE" in
|
|||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
|
if hash brew 2>/dev/null; then
|
||||||
|
if [[ ! -d $(brew --prefix openssl) ]]; then
|
||||||
|
echo "Installing OpenSSL with brew..."
|
||||||
|
if ! brew install openssl; then
|
||||||
|
echo "ERROR: OpenSSL failed to install! Crypto functions will not work..." >&2
|
||||||
|
# Don't abort because it is not fatal
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "ERROR: brew not found! OpenSSL may not be available..." >&2
|
||||||
|
# Don't abort because it is not fatal
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing $package with sudo ..."
|
echo "Installing $package with sudo ..."
|
||||||
sudo installer -pkg "./$package" -target /
|
sudo installer -pkg "./$package" -target /
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in new issue
Block a user