Files
ashlar/CI/before_install.macos.sh

32 lines
845 B
Bash
Executable File

#!/bin/bash -e
DEPS_DIR="/tmp"
source ./CI/macos/deps_versions.sh
brew tap --repair
brew update --quiet
brew install curl p7zip
if [[ "${MACOS_AMD64}" ]]; then
VCPKG_FILE="vcpkg-x64-osx-dynamic"
else
VCPKG_FILE="vcpkg-arm64-osx-dynamic"
fi
pip install aqtinstall
aqt install-qt -O /tmp/Qt mac desktop $QT_VER && rm aqtinstall.log
curl "https://gitlab.com/OpenMW/openmw-deps/-/raw/main/macos/${VCPKG_FILE}-${VCPKG_TAG}-manifest.txt" -o $DEPS_DIR/openmw-manifest.txt
{ read -r URL && read -r HASH FILE; } < $DEPS_DIR/openmw-manifest.txt
curl -fSL -R -J $URL -o $DEPS_DIR/$FILE
echo "${HASH:?} ${FILE:?}" | sha512sum
7z x -y -o$DEPS_DIR/openmw-deps-pre $DEPS_DIR/$FILE && \
mv $DEPS_DIR/openmw-deps-pre/*/ $DEPS_DIR/openmw-deps/ && \
rmdir $DEPS_DIR/openmw-deps-pre
command -v cmake >/dev/null 2>&1 || brew install cmake