mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
aaa2cd6f04
Homebrew uses prefix path on M1 (`/opt/homebrew`) different from x86_64 Homebrew path. It can be queried with `brew --prefix` command, which allows supporting both platforms in `mac/before_install.sh`.
9 lines
278 B
Bash
9 lines
278 B
Bash
#!/bin/sh
|
|
|
|
brew update
|
|
#brew pin python@3.9
|
|
brew install smpeg2 libpng freetype qt5 ffmpeg ninja boost tbb luajit
|
|
brew install sdl2 sdl2_ttf sdl2_image sdl2_mixer
|
|
|
|
echo CMAKE_PREFIX_PATH="$(brew --prefix)/opt/ffmpeg@4:$(brew --prefix)/opt/qt5:$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
|