tis-qbittorrent icon

qBittorent

Silent install package for qBittorent

5.1.4-4
Utilities
Utilities

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a new VirusTotal scan is performed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-qbittorrent
  • name: qBittorent
  • version: 5.1.4-4
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
  • licence: opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
  • target_os: windows
  • impacted_process: qbittorrent
  • architecture: x64
  • signature_date:
  • size: 41.76 Mo
  • installed_size: 185.76 Mo
  • homepage : https://www.qbittorrent.org/

package           : tis-qbittorrent
version           : 5.1.4-4
architecture      : x64
section           : base
priority          : optional
name              : qBittorent
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
description       : The qBittorrent project aims to provide an open-source software alternative to µTorrent
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : https://sourceforge.net/projects/qbittorrent/files/
installed_size    : 185764675
impacted_process  : qbittorrent
description_fr    : Le projet qBittorrent vise à fournir une alternative logicielle libre à µTorrent
description_pl    : Projekt qBittorrent ma na celu zapewnienie oprogramowania typu open-source stanowiącego alternatywę dla µTorrent
description_de    : Das qBittorrent-Projekt zielt darauf ab, eine quelloffene Software-Alternative zu µTorrent anzubieten
description_es    : El proyecto qBittorrent pretende ofrecer una alternativa de software de código abierto a µTorrent
description_pt    : O projeto qBittorrent tem como objetivo fornecer uma alternativa de software de código aberto ao µTorrent
description_it    : Il progetto qBittorrent mira a fornire un'alternativa software open-source a µTorrent
description_nl    : Het qBittorrent-project heeft als doel een open-source software-alternatief te bieden voor µTorrent
description_ru    : Проект qBittorrent направлен на создание программной альтернативы µTorrent с открытым исходным кодом
audit_schedule    : 
editor            : 
keywords          : qbittorrent,project,aims,provide,open,source,software,alternative,µtorrent
licence           : opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
homepage          : https://www.qbittorrent.org/
package_uuid      : a8ccb4ef-c5b8-42b0-9671-015dc1598232
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0.17763
max_os_version    : 
icon_sha256sum    : 7b12f73f18bb72f6def9d5b64d9367b09d1e185c859d7956d7af7270b03fa7f5
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-11-19T23:59:43.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : Rr8MmRsI/0p+o0DUScJeqlZ1fJbn9E076QZOQ+bRqxlU41qNz9zhFj1c5iNzxC5HI3a8yMsuPTtX5gKDq6C3B0KMQTNyjEKraYMMHPf33RMzen/AmofEngks09SXVhV2jxjuo2TLp9BMN++4RhGJRIbdIfI145vo3oRYs79gwGId1cbxUDmRpBKzkbe1scdnkw7rZyhdC0PAmuLYtiDgooanyX7RXo2eHM/m47MSZ8t1L1dRMtKmsE+lH8r+Tbf+e3sorNxF+EP2p2u1n4wIcl7GQ/nCn8ViVeeRag7RGLxbB/Y76MhQBMwPKwUvTKtZNGyQLEeIzM0JExOxZK52vQ==

# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    bin_name = glob.glob("qbittorrent_*_x64_setup.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags="/S",
        key="qBittorrent",
        min_version=control.get_software_version(),
        timeout=600,
    )


def session_setup():
    print("Disabling: automatic updates")

    user_conf_dir = makepath(user_appdata(), "qBittorrent")
    user_conf_file = makepath(user_conf_dir, "qBittorrent.ini")
    updateCheck_status = inifile_readstring(user_conf_file, "Preferences", r"Advanced\updateCheck")

    if updateCheck_status != "false":
        if isrunning("qBittorrent"):
            killalltasks("qBittorrent")
            # error("qBittorrent is currently running")

        print("Creating qBittorrent folder in : %s" % user_conf_dir)
        mkdirs(user_conf_dir)

        print("Checking/Updating qBittorrent updateCheck status")
        inifile_writestring(user_conf_file, "Preferences", r"Advanced\updateCheck", "false")
    else:
        print("Automatic update is already disabled")

# -*- coding: utf-8 -*-
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://sourceforge.net/projects/qbittorrent/best_release.json"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    for platform in json_load["platform_releases"]:
        latest_bin = json_load["platform_releases"][platform]["filename"].split("/")[-1].replace('.asc','')
        if "x64_setup.exe" in latest_bin:
            download_url = json_load["platform_releases"][platform]["url"].replace("http://", "https://").replace('.asc','')
            version = json_load["platform_releases"][platform]["filename"].split("_")[1]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Checking version from file
    if get_os_version() == "Windows":
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) != Version(version, 4) and version_from_file != "":
            print("ERROR: Binary file version do NOT corresponds to online version")
        else:
            print("INFO: Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
650c660e56a11b9458a2030ec7a411dfe6dbd35a80df30d7d17849214becf836 : WAPT/control
7b12f73f18bb72f6def9d5b64d9367b09d1e185c859d7956d7af7270b03fa7f5 : WAPT/icon.png
62fa34f54b27db06fa1dde722da9e07ddf2160c3292348b156820bb2665ffb13 : luti.json
b279e16d682299f218edf48ddf75f7c5802263b7d6a74132d9e31fd5a255aa9d : qbittorrent_5.1.4_x64_setup.exe
47a6092d64d704c316280e66130c29673109f646226d6582d86826e7b7688c87 : setup.py
cd57ae0c2333e36e30c990dfeecf8b8ccb416bcfb90a7fff0e49991994dee5c2 : update_package.py