Skip to content

Commit

Permalink
[Packaging] Add updated launchd scripts
Browse files Browse the repository at this point in the history
Copy from Trac UserGuide and updated with proper naming and deluge-web
version.

The bin location is default for brew with pip install.

Closes: #3073
  • Loading branch information
cas-- committed Jun 8, 2019
1 parent 957cd5d commit 879a397
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/source/intro/01-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ There is no installer package currently for Windows, but can try Deluge as follo

There is no `.app` package currently for macOS, but can try Deluge with homebrew.

1. Install [Homebrew]
2. Open a terminal.
3. Run the following to install required packages:
1. Install [Homebrew]
2. Open a terminal.
3. Run the following to install required packages:

brew install pyobject3 gtk+3 adwaita-icon-theme
brew install libtorrent-rasterbar
brew install pyobject3 gtk+3 adwaita-icon-theme
brew install libtorrent-rasterbar

4. To fix translations:
4. To fix translations:

brew link gettext --force
brew link gettext --force

5. Install Deluge:
5. Install Deluge:

pip3 install deluge
pip3 install deluge

[develop ppa]: https://launchpad.net/~deluge-team/+archive/ubuntu/develop/
[homebrew]: https://brew.sh/
Expand Down
29 changes: 29 additions & 0 deletions packaging/osx/launchd/org.deluge-torrent.deluge-web.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.deluge-torrent.deluge-web</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/deluge-web</string>
<string>-d</string>
<string>-L</string>
<string>error</string>
<string>-l</string>
<string>/var/log/deluge-web.log</string>
</array>
<key>StandardOutPath</key>
<string>/tmp/deluge-web.stdout</string>
<key>StandardErrorPath</key>
<string>/tmp/deluge-web.stderr</string>
<!-- To enable running as 'deluge' user remove comments.
<key>UserName</key>
<string>deluge</string>
-->
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
29 changes: 29 additions & 0 deletions packaging/osx/launchd/org.deluge-torrent.deluged.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.deluge-torrent.deluged</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/deluged</string>
<string>-d</string>
<string>-L</string>
<string>error</string>
<string>-l</string>
<string>/var/log/deluged.log</string>
</array>
<key>StandardOutPath</key>
<string>/tmp/deluged.stdout</string>
<key>StandardErrorPath</key>
<string>/tmp/deluged.stderr</string>
<!-- To enable running as 'deluge' user remove comments.
<key>UserName</key>
<string>deluge</string>
-->
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>

0 comments on commit 879a397

Please sign in to comment.