tis-tribler icon

Tribler

Silent install package for Tribler

8.0.7-1

  • package: tis-tribler
  • name: Tribler
  • version: 8.0.7-1
  • maintainer: Amel FRADJ
  • licence: GPL-3.0 license
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 32.25 Mo
  • homepage : https://www.tribler.org/

package           : tis-tribler
version           : 8.0.7-1
architecture      : x86
section           : base
priority          : optional
name              : Tribler
categories        : 
maintainer        : Amel FRADJ
description       : Tribler is an open source anonymous peer-to-peer decentralized BitTorrent client
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/Tribler/tribler
installed_size    : 
impacted_process  : 
description_fr    : Tribler est un client BitTorrent décentralisé, anonyme et peer-to-peer
description_pl    : Tribler to anonimowy, zdecentralizowany klient BitTorrent typu peer-to-peer o otwartym kodzie źródłowym
description_de    : Tribler ist ein quelloffener, anonymer, dezentraler Peer-to-Peer-BitTorrent-Client
description_es    : Tribler es un cliente BitTorrent de código abierto, anónimo y descentralizado
description_pt    : Tribler é um cliente BitTorrent descentralizado peer-to-peer anónimo e de código aberto
description_it    : Tribler è un client BitTorrent decentralizzato peer-to-peer anonimo e open source
description_nl    : Tribler is een openbron anonieme peer-to-peer gedecentraliseerde BitTorrent-client
description_ru    : Tribler - анонимный одноранговый децентрализованный BitTorrent-клиент с открытым исходным кодом
audit_schedule    : 
editor            : 
keywords          : 
licence           : GPL-3.0 license
homepage          : https://www.tribler.org/
package_uuid      : ac505d5a-5a4c-40b6-bef0-21d7a7677e55
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 7f6717c0df5423cc278ec9de4c7d2dfb8eee7e4bcaf0c8425835c7eca9e9387e
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-21T15:04:26.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         : jO/vajHF72+GXSFduWq735hs/CDB0hgv0jXuQZpFok5duiOHd2ia8DDeWzBOAaHz5pndx0GNLp4CFvUIVBafLpSLdj+6+udwFtTbPjCLrCM7Omig4eorVNEIVfCKBZIBKsyYaehKjiuHYDFChCYKPQf/AHnvI8Z58uHgACgFnUE5xns0CBFuDFJBoSjTsZUYMTW/LJn5Q7Ket8wSKy0ugCn1LgoifKTMMlACnfJpqhUsUIWu/uGDuKBNqFvd/psgCM0EtUiFa5DTL8IDs0dPulzT/42vgxAQImlxviTtFUzYDOlppuAGOfYuhpxCX4xnpJzHxyglNndnlI1qEdNslw==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():

    # Declaring local variables
    bin_name = glob.glob('Tribler_*.exe')[0]
    software_version = control.get_software_version()

    # Uninstalling older major versions of the software
    for to_uninstall in installed_softwares(name="Tribler"):
        if Version(to_uninstall["version"], 3) < Version(software_version, 3) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    # Installing the software
    install_exe_if_needed(bin_name,
        silentflags='/S /allusers',
        key='Tribler',
        min_version=control.get_software_version(),
    )



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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    dict_arch = {"x64": "_x64.exe", "x86": "_x86.exe"}

    git_repo = "Tribler/tribler"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith(".exe") and dict_arch[control.architecture] in download["browser_download_url"]:
            if "debug" not in download["browser_download_url"]:  # Skip debug versions
                url_dl = download["browser_download_url"]
                version = json_load["tag_name"].replace("v", "")
                filename = download["name"]
                break

    if not isfile(filename):
        package_updated = True
        wget(url_dl, filename, proxies=proxies)

    # nettoyer les fichiers temporaires
    for f in glob.glob("*.exe"):
        if f != filename:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

c48c0ef9fd7440e2c48e3cd1a5eadaba81cc0e2189a573a872eb1e47bf4eb32e : Tribler_8.0.7_x86.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
c460de99afcf01256e688f3856301a33a98a1c9895aaa62424dcd03e2f941d82 : WAPT/control
7f6717c0df5423cc278ec9de4c7d2dfb8eee7e4bcaf0c8425835c7eca9e9387e : WAPT/icon.png
2dcffa0cada945258dc612802b0ae35e7c6d0d2278e200efd541f53f312b5cd3 : luti.json
0063529218f3573303c888f830aee6d0996588b1181bf0e91d75d96a9f25f6fe : setup.py
62c78e2bc1ae8e68a99b1530e5ce1a0d6636a48ed2a02a9a7ce9b14c7da07a0e : update_package.py