Go to file
Yat Ho 1e16912ae4
refactor: new `tr_variant` API in `transmission-remote` and other cleanup (#6798)
* refactor: remove `Arguments`

* refactor: replace pointer args with lvalue reference

* refactor: use `uint16_t` for port number

* chore: housekeeping

* refactor: replace `char*` with `std::string_view`

* refactor: simplify argument parsing code

* refactor: use new `tr_variant` API in remote

* chore: rename function to snake_case

* chore: move `break` statements in switches outside of compound statements

* chore: use `std::string` literals

* refactor: extract tor start/stop to `MODE_TORRENT_START_STOP`

* refactor: extract tor actions to `MODE_TORRENT_ACTION`

* chore: iwyu

* fix: msvc build failure

* chore: misc cleanup

* fix: dereference optional

* chore: misc cleanup

* ui: fix minor formatting errors

* fix: remove redundant if branches for response string

* code review: remove `o` prefix for optionals

* code review: add condition clause

* code review: check `left_until_done` instead

* fix: unchecked nullptr

* code review: don't reassign method name

* code review: revert accidentally renaming `addIdArg` to `get_id_arg`

* code review: use `TR_ASSERT` instead of `assert`

* refactor: fix static auto constexpr naming

* code review: assert array size

* code review: assert that `arguments` key exists
2024-08-17 20:04:49 +01:00
.github Add CI configuration for clang-tidy on Windows (#6997) 2024-07-16 22:13:29 +01:00
.tx Sync translations (#6453) 2023-12-29 15:16:07 +00:00
Transmission.xcodeproj chore: misc code cleanups (#6927) 2024-07-14 01:37:55 +01:00
android android patches for ndk (#6024) 2024-01-21 15:27:24 +00:00
cli fix: restore tr_optind in all getConfigDir branches (#6920) 2024-06-15 21:57:46 +01:00
cmake build with -latomic on platforms that need it (#6774) 2024-06-04 21:59:13 +01:00
daemon fix: accurate timestamp in daemon logs (#7009) 2024-08-13 23:57:52 +01:00
dist/msi fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
docs docs: fix a link to send-email-when-torrent-done.sh script in Transmission scripts (#7040) 2024-08-14 00:07:59 +01:00
extras
gtk fix: accurate timestamp in daemon logs (#7009) 2024-08-13 23:57:52 +01:00
icons fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
libtransmission refactor: new `tr_variant` API in `transmission-remote` and other cleanup (#6798) 2024-08-17 20:04:49 +01:00
licenses
macosx fix: accurate timestamp in daemon logs (#7009) 2024-08-13 23:57:52 +01:00
news docs: update release notes for 4.0.4 (#5924) 2023-08-23 15:16:27 -05:00
po Remove low-quality gettext locales from the list (#6475) 2024-01-01 22:19:31 +00:00
qt fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
release/windows Add CI configuration for clang-tidy on Windows (#6997) 2024-07-16 22:13:29 +01:00
tests Fails with an error if data removal was not possible (#6055) 2024-08-13 05:26:09 +01:00
third-party chore: bump small (#6976) 2024-08-13 03:00:58 +01:00
utils refactor: new `tr_variant` API in `transmission-remote` and other cleanup (#6798) 2024-08-17 20:04:49 +01:00
web chore: update generated transmission-web files (#6865) 2024-05-27 20:16:23 -05:00
.clang-format chore: misc formatting updates and fixes (#7049) 2024-08-13 00:44:39 +01:00
.clang-format-ignore android patches for ndk (#6024) 2024-01-21 15:27:24 +00:00
.clang-format-include
.gitignore android patches for ndk (#6024) 2024-01-21 15:27:24 +00:00
.gitmodules bumping libdeflate/small/utfcpp to newer versions (#6709) 2024-03-17 17:28:47 -05:00
AUTHORS docs: update AUTHORS (#6696) 2024-03-14 22:46:54 -05:00
CMakeLists.txt fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
CONTRIBUTING.md Fix code style script path in CONTRIBUTING.md (#6787) 2024-04-21 07:36:13 -05:00
COPYING chore: update copyright years (#6470) 2024-01-03 21:33:30 -06:00
README.md chore: update build instructions (#6102) 2023-10-23 22:24:51 -04:00
appveyor.yml Support WiX toolset versions other than 3.11 (#6689) 2024-03-13 16:40:41 +03:00
code_style.sh Recommended Project Settings (#6591) 2024-05-25 17:42:15 -05:00
icon.png
update-version-h.sh fix: Sparkle Version Comparator (#5263) 2024-03-17 16:23:39 -05:00

README.md

About

Transmission is a fast, easy, and free BitTorrent client. It comes in several flavors:

  • A native macOS GUI application
  • GTK+ and Qt GUI applications for Linux, BSD, etc.
  • A Qt-based Windows-compatible GUI application
  • A headless daemon for servers and routers
  • A web UI for remote controlling any of the above

Visit https://transmissionbt.com/ for more information.

Documentation

Transmission's documentation is currently out-of-date, but the team has recently begun a new project to update it and is looking for volunteers. If you're interested, please feel free to submit pull requests!

Command line interface notes

Transmission is fully supported in transmission-remote, the preferred cli client.

Three standalone tools to examine, create, and edit .torrent files exist: transmission-show, transmission-create, and transmission-edit, respectively.

Prior to development of transmission-remote, the standalone client transmission-cli was created. Limited to a single torrent at a time, transmission-cli is deprecated and exists primarily to support older hardware dependent upon it. In almost all instances, transmission-remote should be used instead.

Different distributions may choose to package any or all of these tools in one or more separate packages.

Building

Transmission has an Xcode project file (Transmission.xcodeproj) for building in Xcode.

For a more detailed description, and dependencies, visit How to Build Transmission in docs

Building a Transmission release from the command line

$ tar xf transmission-4.0.4.tar.xz
$ cd transmission-4.0.4
# Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary with debug information. (preferred)
# Use -DCMAKE_BUILD_TYPE=Release to build full optimized binary.
$ cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
$ cd build
$ cmake --build .
$ sudo cmake --install .

Building Transmission from the nightly builds

Download a tarball from https://build.transmissionbt.com/job/trunk-linux/ and follow the steps from the previous section.

If you're new to building programs from source code, this is typically easier than building from Git.

Building Transmission from Git (first time)

$ git clone --recurse-submodules https://github.com/transmission/transmission Transmission
$ cd Transmission
# Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary with debug information. (preferred)
# Use -DCMAKE_BUILD_TYPE=Release to build full optimized binary.
$ cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
$ cd build
$ cmake --build .
$ sudo cmake --install .

Building Transmission from Git (updating)

$ cd Transmission/build
$ cmake --build . -t clean
$ git submodule foreach --recursive git clean -xfd
$ git pull --rebase --prune
$ git submodule update --init --recursive
$ cmake --build .
$ sudo cmake --install .

Contributing

Code Style

You would want to setup your editor to make use of the .clang-format file located in the root of this repository and the eslint/prettier rules in web/package.json.

If for some reason you are unwilling or unable to do so, there is a shell script which you can use: ./code_style.sh

Translations

See language translations.

Sponsors

[MacStadium] macOS CI builds are running on a M1 Mac Mini provided by MacStadium
[SignPath] Free code signing on Windows provided by SignPath.io, certificate by SignPath Foundation