Skip to content
HugeLettersPublic

About

A BitTorrent client for macOS: Rust background service, CLI and a Rune GUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Phantom

A BitTorrent client for macOS, written in Rust: a background service that runs the torrents, the Phantom app and the phantom command line client. The torrent work is done by librqbit; the app is drawn with Rune.

Install

scripts/install-mac.sh

This builds a release and installs ~/Applications/Phantom.app. Rerun it to update (a running Phantom is quit and reopened). Phantom then opens magnet links clicked anywhere. Downloads go to ~/Downloads; the service keeps its state and log in ~/Library/Application Support/Phantom.

Sharing a build

scripts/package-mac.sh

This writes dist/Phantom-<version>-mac-arm64.zip, signed ad hoc (not by Apple), for friends. It runs on Apple silicon only and needs macOS 13 or newer. Their steps:

  1. Unzip it and drag Phantom.app to Applications.
  2. Open it. macOS refuses, because the app isn't from an identified developer.
  3. Open System Settings → Privacy & Security, click Open Anyway and confirm.

Each new version needs Open Anyway again. To update: quit Phantom, drag the new app over the old one in Applications and open it; the new app replaces the old background service itself.

Command line

cargo build puts phantom in target/debug/. It starts the service if needed:

phantom add 'magnet:?xt=urn:btih:…'   # or a .torrent file or URL
phantom watch                          # the list, refreshed every second
phantom pause 0 / resume 0
phantom remove 0                       # keeps its files; `delete 0` deletes them too
phantom files 0                        # its files, with their progress and priority
phantom priority 0 off 2 3             # don't download files 2 and 3; `normal` to again
phantom keepalive                      # keep the service running with no app open
phantom stop

Developing

See ARCHITECTURE.md for the map of the code and GLOSSARY.md (with one per domain, linked from it) for the words it uses. cargo test runs the tests.

About

A BitTorrent client for macOS: Rust background service, CLI and a Rune GUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages