tis-handbrake icon

HandBrake

Paquet d’installation silencieuse pour HandBrake

1.8.1-1

  • package: tis-handbrake
  • name: HandBrake
  • version: 1.8.1-1
  • categories: Media
  • maintainer: WAPT Team,Tranquil IT,Alexandre Gauvrit,Clément BAZIRET
  • editor: Rodney Hester
  • licence: opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: HandBrake
  • architecture: x64
  • signature_date:
  • size: 23.78 Mo
  • installed_size: 105.68 Mo
  • homepage : https://handbrake.fr/
  • depends:

package           : tis-handbrake
version           : 1.8.1-1
architecture      : x64
section           : base
priority          : optional
name              : HandBrake
categories        : Media
maintainer        : WAPT Team,Tranquil IT,Alexandre Gauvrit,Clément BAZIRET
description       : HandBrake is a tool to convert video from almost any format to a selection of modern and widely supported codecs.
depends           : tis-dotnet6
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://github.com/HandBrake/HandBrake/releases
installed_size    : 105677524
impacted_process  : HandBrake
description_fr    : HandBrake est un outil pour convertir la vidéo de presque n'importe quel format à une sélection de codecs modernes et largement pris en charge.
description_pl    : HandBrake to narzędzie do konwersji wideo z niemal dowolnego formatu do wybranych nowoczesnych i szeroko obsługiwanych kodeków
description_de    : HandBrake ist ein Werkzeug zur Konvertierung von Videos aus nahezu jedem Format in eine Auswahl moderner und weithin unterstützter Codecs
description_es    : HandBrake es una herramienta para convertir vídeo de casi cualquier formato a una selección de códecs modernos y ampliamente soportados
description_pt    : O HandBrake é uma ferramenta para converter vídeo de quase qualquer formato para uma selecção de codecs modernos e amplamente suportados
description_it    : HandBrake è uno strumento per convertire video da quasi tutti i formati in una selezione di codec moderni e ampiamente supportati
description_nl    : HandBrake is een hulpmiddel om video van vrijwel elk formaat te converteren naar een selectie van moderne en breed ondersteunde codecs
description_ru    : HandBrake - это инструмент для преобразования видео практически из любого формата в набор современных и широко поддерживаемых кодеков
audit_schedule    : 
editor            : Rodney Hester
keywords          : handbrake,tool,video
licence           : opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
homepage          : https://handbrake.fr/
package_uuid      : 978219c7-d2ca-4d5f-950a-1760f8ac3f13
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : d46944b977198f5333feedd3bea127928607e7e886e53b01251284450e6a8385
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : iwiTtrWovTIPdFmthwG/v18kftgmk8GcdcVRqKIAqYymWwyXt7YtMVb5LqkM1i8wLLt0vkqhGY20zAVrAF/DjrZ+zHWUsFgXVu2HQDiYWJMPqgvLu8y+E6Jvtc6OSPlmiNnWee4sUPrNPD/DmzRBHKJuuAjeIvCn42ZQJuv4mY8Yrnp4PXAYKdD0BeBalyK9Jm//HDvwFoPEZYfRaoGAFJIWfUDADeUwrCwrfBbbo9Cc21zNWUHGqNgGxEjXf278HYsjg6GrHOfbneME95it83if5XmLQdMXZsimjMwtvBAgOjlvJPPb2m0bmXoc9XGog/+AcpwHZ4I85GACRgvYWQ==
signature_date    : 2024-06-29T10:00:07.557454
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

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


def install():
    bin_name = glob.glob("HandBrake-*-x86_64-Win_GUI.exe")[0]

    install_exe_if_needed(
        bin_name,
        silentflags="/S",
        key="HandBrake",
        min_version=control.get_software_version(),
    )

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/HandBrake/HandBrake/releases/latest"
    bin_contains = "-x86_64-Win_GUI.exe"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "").replace(".windows", "")
    for to_download in json_load["assets"]:
        if bin_contains in to_download["name"]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.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_name() == "Windows" and "windows" in control.target_os.lower():
    #     version_from_file = get_version_from_binary(latest_bin)
    #     if Version(version_from_file, 4) == Version(version, 4):
    #         print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
    #     else:
    #         error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({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

e7b5fa088ef9ab365dc24c302c3db472135bd3696004e14448a0beca6738762e : setup.py
fa3b9064e1f1732a751bad9fa9512f50b9b39877aefc0604b46eb941488db6dc : HandBrake-1.8.1-x86_64-Win_GUI.exe
56933560cc2371b847c65e5111b08f645268850812e4b1b3bb474a9e9851d494 : update_package.py
d46944b977198f5333feedd3bea127928607e7e886e53b01251284450e6a8385 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
9905946f5cc558d6da2767d73ddae437445d298e94b78e9f5a8efda06632be9f : luti.json
6c0a1d57cf35adba56825e804f9dab4a49c5eec5195038f55f901e3b5d26cdfc : WAPT/control