Browse Source

Add build instructions for macOS.

Yuxin Wang 3 years ago
parent
commit
36a2f6cb14
1 changed files with 20 additions and 0 deletions
  1. 20 0
      README.md

+ 20 - 0
README.md

@@ -75,6 +75,26 @@ ninja
 ninja windows_package
 ```
 
+## Building for MacOS
+
+Install [QT 5.15.2](https://www.qt.io/download-thank-you?hsLang=en), remember to check `Qt WebEngine`.
+
+Then run the following commands (replace <QT_DIR> with your QT installation location):
+
+```bash
+brew install mpv ninja
+./download_webclient.sh
+cd build
+cmake -GNinja -DQTROOT=<QT_DIR> -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=output ..
+ninja install
+```
+
+To create redistributable bundle, some library paths need to be fixed. At the project root directory, run:
+
+```bash
+python3 ./scripts/fix-install-names.py ./build/output/Jellyfin\ Media\ Player.app
+```
+
 ## Log File Location
 
  - Windows: `%LOCALAPPDATA%\JellyfinMediaPlayer\logs`