tis-qbittorrent icon

qBittorent

Paquet d’installation silencieuse pour qBittorent

5.1.0-4

  • package: tis-qbittorrent
  • name: qBittorent
  • version: 5.1.0-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.30 Mo
  • installed_size: 185.76 Mo
  • homepage : https://www.qbittorrent.org/

package           : tis-qbittorrent
version           : 5.1.0-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          : PROD
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      : f14c7c78-b0ef-4a3a-a7d0-099f73c63b65
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0.17763
max_os_version    : 
icon_sha256sum    : 7b12f73f18bb72f6def9d5b64d9367b09d1e185c859d7956d7af7270b03fa7f5
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-02T22:00:14.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         : OrbDkHFaPr6rlTx3p7h/DJE5oQpw0O2J4XxUJzHe9vCYwRsFmVbcchaU5/RaWq/4iH5TuM9TmrVcYe+itRY8o7MwOxHpjgBJSbnpidmBgZz2c1eyCkXtDUijijG6trXhQEuvA9YOvOCjBljjBCeY7gyLhKpfyfX75+CWdFhdPn3VMN8NKagCtLPt9aKGXPi2RLR7yl3MbE805SvQvqCsWPC7FTFJSX5nJGn3gUmXdTBwvw1Bf6JAuH33jpJGVpDjd22gxDeJz2sbbwiZCEyVjq4I7WKCyncD04wIJqFGVuqT9W65ZQOTa9hxwXJVcW37oJk40dOqlz9iX1w4pJlOgQ==

# -*- 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)

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d6cd9c727f78f58c9147a310f06479eed219b0675cec59ac506ee7a9e012a6b7 : WAPT/control
7b12f73f18bb72f6def9d5b64d9367b09d1e185c859d7956d7af7270b03fa7f5 : WAPT/icon.png
09e3581718bb7be98d314d2d0a018b0908fdda8bab933e23bc3cc92e42ff96cb : luti.json
8a8f4f9d4273aacc25dc552ba10fd7fc17ec28c1a1f184356ae8ae53f651a6b7 : qbittorrent_5.1.0_x64_setup.exe
47a6092d64d704c316280e66130c29673109f646226d6582d86826e7b7688c87 : setup.py
cd57ae0c2333e36e30c990dfeecf8b8ccb416bcfb90a7fff0e49991994dee5c2 : update_package.py