install-dependencies-macos.sh 653 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. set -ex
  3. # OBS Studio deps
  4. brew update
  5. brew install ffmpeg
  6. brew install libav
  7. # qt 5.9.2
  8. brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/2b121c9a96e58a5da14228630cb71d5bead7137e/Formula/qt.rb
  9. # Build obs-studio
  10. cd ..
  11. git clone --recursive https://github.com/jp9000/obs-studio
  12. cd obs-studio
  13. git checkout 21.0.0
  14. mkdir build && cd build
  15. cmake .. \
  16. -DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake \
  17. && make -j4
  18. # Packages app
  19. cd ..
  20. curl -L -O http://s.sudre.free.fr/Software/files/Packages.dmg -f --retry 5 -C -
  21. hdiutil attach ./Packages.dmg
  22. sudo installer -pkg /Volumes/Packages\ 1.2.2/packages/Packages.pkg -target /