1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00
No description
Find a file
Charles Kerr 8a35aa0903
refactor: add tr_rand_obj() (#4238)
* refactor: add tr_rand_obj()

There are a lot of places in the codebase where we need to populate
an integral type or a fixed-size array with random data. To do this,
we instantiate a local on the stack, fill it with tr_rand_buffer(),
and then use it.

This PR creates a helper function to make this a one-liner.
2022-11-25 15:04:37 -06:00
.github Fix default/minimum CMAKE_OSX_DEPLOYMENT_TARGET handling (#4156) 2022-11-13 12:02:07 +00:00
.tx Sync translations (#3968) 2022-10-15 21:21:13 +03:00
cli refactor: avoid tr_new() in transmission-remote (#3665) 2022-08-17 20:25:42 -05:00
cmake Remove Xcode project in favor of CMake (#4147) 2022-11-12 20:01:57 +00:00
daemon fix: sonarcloud warnings (#4180) 2022-11-15 10:25:12 -06:00
dist/msi Bump deps versions used for Windows release builds (#4092) 2022-11-04 18:38:28 +00:00
docs Adopt localizedStringWithFormat for displayed quantities (#4109) 2022-11-14 18:30:03 +00:00
extras fix: some typos (#3904) 2022-10-13 09:35:10 -05:00
gtk fix: coverity warnings, sonarcloud code smells (#4232) 2022-11-24 10:17:02 -06:00
libtransmission refactor: add tr_rand_obj() (#4238) 2022-11-25 15:04:37 -06:00
licenses refactor: aggregate arc4 into libtransmission (#3684) 2022-08-20 13:41:40 -05:00
macosx Fix building with cmake on macOS Mojave (#4234) 2022-11-24 11:20:48 -06:00
news fix: some typos (#3904) 2022-10-13 09:35:10 -05:00
po Sync translations (#4161) 2022-11-14 09:48:42 +00:00
qt fix: coverity warnings, sonarcloud code smells (#4232) 2022-11-24 10:17:02 -06:00
release/windows Bump deps versions used for Windows release builds (#4092) 2022-11-04 18:38:28 +00:00
tests refactor: add tr_rand_obj() (#4238) 2022-11-25 15:04:37 -06:00
third-party build: bump libb64 (#4129) 2022-11-09 14:04:06 -06:00
Transmission.xcodeproj Fix building on macOS Mojave (#4231) 2022-11-24 01:14:20 -06:00
utils fix: sonarcloud warnings (#4180) 2022-11-15 10:25:12 -06:00
web build(deps): bump loader-utils from 2.0.3 to 2.0.4 in /web (#4212) 2022-11-18 22:32:38 -06:00
.clang-format
.clang-format-ignore Appropriate and improve VDKQueue (#4202) 2022-11-18 13:53:36 -06:00
.clang-format-include Adopting .clang-format-include and .clang-format-ignore (#3047) 2022-05-13 18:48:33 -05:00
.gitignore refactor: modernize cache.cc (#3108) 2022-06-11 19:46:30 -05:00
.gitmodules refactor: aggregate arc4 into libtransmission (#3684) 2022-08-20 13:41:40 -05:00
appveyor.yml Only run AppVeyor builds on main and versioned branches/tags (#4150) 2022-11-12 20:27:15 +00:00
AUTHORS fix: some typos (#3904) 2022-10-13 09:35:10 -05:00
CMakeLists.txt Fix default/minimum CMAKE_OSX_DEPLOYMENT_TARGET handling (#4156) 2022-11-13 12:02:07 +00:00
code_style.sh Adopting .clang-format-include and .clang-format-ignore (#3047) 2022-05-13 18:48:33 -05:00
CONTRIBUTING.md docs: fix various typos and misspellings (#2955) 2022-04-21 09:28:38 -05:00
COPYING Update Copyright Year to 2022. (#3352) 2022-06-28 09:07:12 -05:00
icon.png Adding icon.png for Sourcetree (#3250) 2022-06-10 12:34:46 -05:00
README.md Adopt localizedStringWithFormat for displayed quantities (#4109) 2022-11-14 18:30:03 +00:00
update-version-h.sh build: support semver versioning (#3867) 2022-10-05 16:53:10 -05:00

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-3.00.tar.xz
$ cd transmission-3.00
$ mkdir build
$ cd build
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make 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 https://github.com/transmission/transmission Transmission
$ cd Transmission
$ git submodule update --init --recursive
$ mkdir build
$ cd build
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Building Transmission from Git (updating)

$ cd Transmission/build
$ make clean
$ git submodule foreach --recursive git clean -xfd
$ git pull --rebase --prune
$ git submodule update --recursive
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make 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