53 | | * Either uninstall `pillow` or [https://bitbucket.org/ronaldoussoren/macholib/pull-requests/10/ patch `MachOGraph.py`] when encountering error `dyld_find() got an unexpected keyword argument 'loader'`. |
54 | | * Verify whether building as 'wheel' affects packaging. |
55 | | 1. Follow `Build Deluge.app` steps below, will require `setup.cfg` file and `osx` directory from git repo. |
| 52 | 1. Install and package Deluge: |
| 53 | a. If using release tarball download required `setup.cfg` and `osx` directory from git, run commands in deluge source directory: |
| 54 | {{{ |
| 55 | wget --content-disposition http://git.deluge-torrent.org/deluge/plain/setup.cfg?h=1.3-stable |
| 56 | wget -rnd -np -e robots=off --reject "index.html*" --content-disposition http://git.deluge-torrent.org/deluge/plain/osx/?h=1.3-stable -P osx |
| 57 | }}} |
| 58 | a. Build and install Deluge using py2app: |
| 59 | {{{ |
| 60 | jhbuild shell |
| 61 | python setup.py py2app |
| 62 | python setup.py install |
| 63 | }}} |
| 64 | * For error "dyld_find() got an unexpected keyword argument 'loader'", either uninstall `pillow` or [https://bitbucket.org/ronaldoussoren/macholib/pull-requests/10/ patch `MachOGraph.py`] |
| 65 | a. Package Deluge into app in `osx/app/` using gtk-mac-bundler script: |
| 66 | {{{ |
| 67 | cd osx |
| 68 | ./make-app |
| 69 | }}} |
| 70 | 1. Optionally create a dmg image: |
| 71 | {{{ |
| 72 | hdutil create -format UDBZ -subfolder Deluge.app deluge-installer.dmg |
| 73 | }}} |