File: README.md

package info (click to toggle)
papers 48.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,096 kB
  • sloc: ansic: 38,478; sh: 195; xml: 127; makefile: 117
file content (36 lines) | stat: -rw-r--r-- 2,119 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Build on MacOS

This is a rough guide about building and packaging Papers to a standalone package on MacOS. We are not talking about how to build a homebrew or macports package.

Thanks to the [gtk-osx-build](https://gitlab.gnome.org/GNOME/gtk-osx) and [gtk-mac-bunlder](https://gitlab.gnome.org/GNOME/gtk-mac-bundler) project, we don't need to build standalone package from scratch. So the whole process can be summarized as:

1. Setup `gtk-osx-build` and `gtk-mac-bundler`.
2. Edit the configuration of `jhbuild` and points the module set to the one we provided.
3. Build and install Papers through jhbuild.
4. Use gtk-mac-bundler to bundle the Papers and its dependencies into the Papers.app.
5. Run some predefined scripts to turn Papers.app into Papers.dmg.

WARNING: `gtk-osx-build` is based on jhbuild and is not compatible with homebrew. Rename your homebrew directory before bootstrapping `gtk-osx-build`.

## File Structure

Here is the descriptions of files inside this directory:

| file/directory |                         description                          |
| :------------: | :----------------------------------------------------------: |
| papers.module  | The predefined module set file for `jhbuild`, which describes how to build Papers and its dependencies |
|  Papers.icns   |           The icons of Papers to build the bundle            |
|   Info.plist   |                  The metadata of the bundle                  |
| papers.bundle  |             The input file of `gtk-mac-bundler`              |
|    patches/    |              Patches used by the jhbuild module              |
|     dmg.sh     |        A sample script to build the Papers.dmg image         |
|    Makefile    |                      A sample Makefile                       |

## Feature Matrix

| Document Type | Support | Registered as Handler |
| :-----------: | :-----: | :-------------------: |
|      pdf      |    ✓    |           ✓           |
| cbz, cbr, cb7 |    ✓    |           ✓           |
|     djvu      |    ✓    |                       |
|   tiff, tif   |    ✓    |                       |