Sfoglia il codice sorgente

Merge pull request #65 from yxwangcs/add-macos-build-instructions

Add build instructions for macOS.
Ian Walton 3 anni fa
parent
commit
48b70b9dfc
1 ha cambiato i file con 20 aggiunte e 0 eliminazioni
  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`