Better structuring

Oleg Shparber 2016-12-15 01:38:28 -05:00
parent b6c4d4262b
commit bbc934c167

@ -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`.
Simply move `Zeal.app` to your `Applications` directory.