diff --git a/Build-Instructions-for-OS-X.md b/Build-Instructions-for-OS-X.md index 05056fd..46b3b7d 100644 --- a/Build-Instructions-for-OS-X.md +++ b/Build-Instructions-for-OS-X.md @@ -4,41 +4,48 @@ Please avoid reporting issues you encounter on OS X, unless they are also reprod ## Installing dependencies -### Homebrew - -[Homebrew](http://brew.sh/) provides a simple way to obtain required dependencies: +Use one of the following methods, based on which package manager you use. +#### Homebrew ```bash brew install qt5 libarchive ``` -### MacPorts - +#### MacPorts ```bash port install qt5 qt5-qtwebengine qt5-sqlite-plugin libarchive ``` ## Building Zeal -### Homebrew +### Source code +To test the most recent version of source code, fetch it from GitHub: ```bash git clone https://github.com/zealdocs/zeal.git -cd zeal -/usr/local/opt/qt5/bin/qmake INCLUDEPATH+=/usr/local/opt/libarchive/include "LIBS+=-L/usr/local/opt/libarchive/lib -larchive" -make -cd bin -/usr/local/opt/qt5/bin/macdeployqt Zeal.app ``` -### MacPorts +### Compiling +#### Homebrew + +```bash +/usr/local/opt/qt5/bin/qmake INCLUDEPATH+=/usr/local/opt/libarchive/include "LIBS+=-L/usr/local/opt/libarchive/lib -larchive" +make +``` + +#### MacPorts ```bash -git clone https://github.com/zealdocs/zeal.git -cd zeal /opt/local/libexec/qt5/bin/qmake INCLUDEPATH+=/opt/local/include make SUBLIBS="-L/opt/local/lib -larchive -lsqlite3" +``` + +### Appbundle +Create an application bundle: +```bash cd bin /opt/local/libexec/qt5/bin/macdeployqt Zeal.app ``` + ## Installation -Grab `Zeal.app` from `bin` subdirectory, and move it to `Applications`. \ No newline at end of file + +Simply move `Zeal.app` to your `Applications` directory. \ No newline at end of file