1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/CI/before_install.osx.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.0 KiB
Bash
Raw Normal View History

2021-03-05 12:08:38 +00:00
#!/bin/sh -ex
export HOMEBREW_NO_EMOJI=1
2023-01-31 08:54:44 +00:00
brew tap --repair
brew update --quiet
2021-01-17 15:58:43 +00:00
# workaround python issue on travis
2021-07-16 21:18:28 +00:00
[ -z "${TRAVIS}" ] && brew uninstall --ignore-dependencies python@3.8 || true
[ -z "${TRAVIS}" ] && brew uninstall --ignore-dependencies python@3.9 || true
[ -z "${TRAVIS}" ] && brew uninstall --ignore-dependencies qt@6 || true
2021-01-17 15:58:43 +00:00
2020-10-09 13:56:21 +00:00
# Some of these tools can come from places other than brew, so check before installing
[ -z "${TRAVIS}" ] && brew reinstall xquartz
[ -z "${TRAVIS}" ] && brew reinstall fontconfig
2020-10-09 13:56:21 +00:00
command -v ccache >/dev/null 2>&1 || brew install ccache
command -v cmake >/dev/null 2>&1 || brew install cmake
2021-03-05 12:07:26 +00:00
command -v qmake >/dev/null 2>&1 || brew install qt@5
brew install icu4c yaml-cpp sqlite
export PATH="/usr/local/opt/qt@5/bin:$PATH" # needed to use qmake in none default path as qt now points to qt6
2020-10-20 21:22:37 +00:00
ccache --version
cmake --version
2021-03-05 12:10:22 +00:00
qmake --version
2022-11-12 02:43:57 +00:00
curl -fSL -R -J https://gitlab.com/OpenMW/openmw-deps/-/raw/main/macos/openmw-deps-20221113.zip -o ~/openmw-deps.zip
2018-06-26 14:01:10 +00:00
unzip -o ~/openmw-deps.zip -d /private/tmp/openmw-deps > /dev/null