mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00

This means we won't be upgrading existing packages on the system that we don't need for the build. Marks install-native-dependencies.sh as executable (+x) so we don't need to start it with `sh` in the build .yml Fixes https://github.com/dotnet/runtime/issues/36727
22 lines
720 B
Bash
Executable file
22 lines
720 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ "$1" = "Linux" ]; then
|
|
sudo apt update
|
|
if [ "$?" != "0" ]; then
|
|
exit 1;
|
|
fi
|
|
sudo apt install cmake llvm-3.9 clang-3.9 lldb-3.9 liblldb-3.9-dev libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev libkrb5-dev libnuma-dev autoconf automake libtool build-essential
|
|
if [ "$?" != "0" ]; then
|
|
exit 1;
|
|
fi
|
|
elif [ "$1" = "OSX" ] || [ "$1" = "tvOS" ] || [ "$1" = "iOS" ]; then
|
|
engdir=$(dirname "${BASH_SOURCE[0]}")
|
|
brew bundle --no-lock --file "${engdir}/Brewfile"
|
|
if [ "$?" != "0" ]; then
|
|
exit 1;
|
|
fi
|
|
else
|
|
echo "Must pass \"Linux\", \"tvOS\", \"iOS\" or \"OSX\" as first argument."
|
|
exit 1
|
|
fi
|
|
|