Go to file
Charles Kerr f59118d1fe
feat: add torrent-get 'primary-mime-type' to RPC. (#1464)
* feat: add torrent-get 'primary-mime-type' to RPC.

This is a cheap way for RPC clients to know what type of content is in a
torrent. This info can be used to display the torrent, e.g. by using an
icon that corresponds to the mime type.

* use size_t for content byte count

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* explicit boolean expressions

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* use uint64_t for content byte counts

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* avoid unnecessary logic branches

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* explicit cast

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>

* refactor: add an autogenerated mime-type.h header

* chore: maybe fix the win32 FTBFS

* chore: add mime-types.[ch] to xcode

* Squashed commit of the following:

commit 4c7153fa48
Author: Mike Gelfand <mikedld@users.noreply.github.com>
Date:   Tue Oct 13 03:15:19 2020 +0300

    Remove autotools-based build system (#1465)

    * Support .git files (e.g. for worktrees, submodules)
    * Fix symlinks in source tarball, switch to TXZ, adjust non-release name
    * Remove autotools stuff

Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
2020-10-13 10:33:56 -05:00
.tx Add Mac client translations to and downsync from Transifex 2017-01-28 13:44:15 +03:00
Transmission.xcodeproj feat: add torrent-get 'primary-mime-type' to RPC. (#1464) 2020-10-13 10:33:56 -05:00
cli Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
cmake Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
daemon Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
dist/msi Only add revision to filename for nightly builds (MSI package) 2019-06-20 04:55:30 +03:00
docker/code_style chore: run uncrustify in parallel; add package.json to web directory (#1454) 2020-09-20 15:41:45 -05:00
extras feat: add torrent-get 'primary-mime-type' to RPC. (#1464) 2020-10-13 10:33:56 -05:00
gtk Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
libtransmission feat: add torrent-get 'primary-mime-type' to RPC. (#1464) 2020-10-13 10:33:56 -05:00
macosx Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
po Sync existing translations with Transifex 2020-10-03 15:36:23 +03:00
qt feat: add torrent-get 'primary-mime-type' to RPC. (#1464) 2020-10-13 10:33:56 -05:00
release/windows Add AppVeyor configuration for Windows release builds 2020-05-05 13:56:48 +03:00
tests feat: add torrent-get 'primary-mime-type' to RPC. (#1464) 2020-10-13 10:33:56 -05:00
third-party Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
utils Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
web Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
.gitignore Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
.gitmodules refactor: use GTest for running tests (#1383) 2020-08-11 13:11:55 -05:00
AUTHORS Remove mention of Growl, which has been removed. 2020-05-25 09:37:19 -04:00
CMakeLists.txt Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
COPYING Bump copyright to 2020 (some more places) (#1206) 2020-05-02 12:26:42 -05:00
NEWS.md docs: make 'news' a markdown file (#1208) 2020-05-03 18:33:57 -05:00
README.md chore: run uncrustify in parallel; add package.json to web directory (#1454) 2020-09-20 15:41:45 -05:00
appveyor.yml Use release code signing certificate on Windows 2020-05-14 19:20:07 +03:00
code_style.sh chore: run uncrustify in parallel; add package.json to web directory (#1454) 2020-09-20 15:41:45 -05:00
docker-compose.yml chore: run uncrustify in parallel; add package.json to web directory (#1454) 2020-09-20 15:41:45 -05:00
uncrustify.cfg chore: run uncrustify in parallel; add package.json to web directory (#1454) 2020-09-20 15:41:45 -05:00
update-version-h.sh Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00

README.md

About

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

  • A native Mac OS X GUI application
  • GTK+ and Qt GUI applications for Linux, BSD, etc.
  • A headless daemon for servers and routers
  • A web UI for remote controlling any of the above

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

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: https://github.com/transmission/transmission/wiki

Building a Transmission release from the command line

$ tar xf transmission-2.92.tar.xz
$ cd transmission-2.92
$ mkdir build
$ cd build
$ cmake ..
$ 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
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

Building Transmission from Git (updating)

$ cd Transmission/build
$ make clean
$ git pull --rebase --prune
$ git submodule update
$ cmake ..
$ make
$ sudo make install

Contributing

Code Style

You would want to setup your editor to make use of the uncrustify.cfg 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 could run either directly or via docker-compose:

$ ./code_style.sh
or
$ docker-compose build --pull
$ docker-compose run --rm code_style