Version 11 (modified by Cas, 8 years ago) (diff) |
---|
Deluge.app for OSX
Manual Steps (Tested on Yosemite VM)
- Install XCode
- Jhbuild install and update Python:
wget https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh sh gtk-osx-build-setup.sh export PATH=~/.local/bin:~/gtk/inst/bin:$PATH jhbuild build bootstrap jhbuild build python
- Uncomment _gtk_osx_use_jhbuild_python = True in .jhbuildrc-custom.
- GTK OSX Build:
jhbuild build meta-gtk-osx-bootstrap
- PyGTK (Includes meta-gtk-osx-core)
jhbuild build libglade jhbuild build meta-gtk-osx-python
- A pygobject patch to apply to fix annoying console warnings.
- GTK OSX Themes:
jhbuild build meta-gtk-osx-themes jhbuild build gtk-quartz-engine
- Note: Quartz patch if build error: 'height' is uninitialized.
- PyGTK (Includes meta-gtk-osx-core)
- Bundler for Packaging Deluge.
wget http://ftp.gnome.org/pub/gnome/sources/gtk-mac-bundler/0.7/gtk-mac-bundler-0.7.4.tar.xz tar xf gtk-mac-bundler-0.7.4.tar.xz cd gtk-mac-bundler-0.7.4 make install
- Build libtorrent and deps using libtorrent.modules:
wget http://git.deluge-torrent.org/deluge/plain/osx/libtorrent.modules?h=1.3-stable jhbuild -m libtorrent.modules build meta_libtorrent
- OpenSSL will require "Skip Module (2)" when they fail at the end of installing stage as they cannot take advantage of DESTDIR path.
- Note on OpenSSL Error: 'libcrypto is a fat file' is due to mixing arch types (i386, x64) in build process.
- Install Deluge dependencies using pip:
jhbuild shell wget https://bootstrap.pypa.io/get-pip.py python get-pip.py pip install twisted[tls] chardet mako pyxdg setproctitle pillow py2app
- Install and package Deluge:
- If using release tarball download required setup.cfg and osx directory from git, run commands in deluge source directory:
wget --content-disposition http://git.deluge-torrent.org/deluge/plain/setup.cfg?h=1.3-stable 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
- Build and install Deluge using py2app:
jhbuild shell python setup.py py2app python setup.py install
- For error "dyld_find() got an unexpected keyword argument 'loader'", either uninstall pillow or patch `MachOGraph.py`
- Package Deluge into app in osx/app/ using gtk-mac-bundler script:
cd osx ./make-app
- If using release tarball download required setup.cfg and osx directory from git, run commands in deluge source directory:
- Optionally create a dmg image:
hdutil create -format UDBZ -subfolder Deluge.app deluge-installer.dmg
Previous Semi-Automated Guide