tis-handbrake icon

HandBrake

Paquet d’installation silencieuse pour HandBrake

1.4.1-0

  • package: tis-handbrake
  • name: HandBrake
  • version: 1.4.1-0
  • categories: Media
  • maintainer: TIS, Alexandre Gauvrit
  • editor: Rodney Hester
  • licence: GPLv2
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 16.27 Mo
  • installed_size: 58.21 Mo
  • homepage : https://handbrake.fr/
  • depends:

package           : tis-handbrake
version           : 1.4.1-0
architecture      : x64
section           : base
priority          : optional
name              : HandBrake
categories        : Media
maintainer        : TIS, Alexandre Gauvrit
description       : HandBrake is a tool to convert video from almost any format to a selection of modern and widely supported codecs.
depends           : tis-dotnetfx
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 1.0.7
sources           : 
installed_size    : 58208256
impacted_process  : 
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    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Rodney Hester
keywords          : handbrake,tool,video
licence           : GPLv2
homepage          : https://handbrake.fr/
package_uuid      : c68e6933-1fa0-4138-aad7-3591f58e7a9e
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : d46944b977198f5333feedd3bea127928607e7e886e53b01251284450e6a8385
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : si1QxuRKn78UcmUYpYVCEeeLt80YBP8ATyfQ/HGLZqk7auivwB7giMkOncCxpA9YHWzAxl09sLrIki70Dxy2+KN9w6IIeXFtec24eX7wXULzqq8yTkbQcdBXM98Fw9Jo6XfPziVXZx/Ozrxq/3Q1h+fYCrRw/eu5SNXBUD109ThrpaY8ERnQmwxnX1NDbp+WS1RRUXxXzy2RbevJV8aUtAbY4+ZMiDG8R91xcqoJ3Z7A61/ItkS+bP3wr2GmTVT34j25ntK8K4TAz40Mx/3OOza0ilSoqVy+K6gSORywHrP++cQQ+9hwkkWrPpuVCIr9/B6HlbIbUEDgEdoSdj7PRA==
signature_date    : 2021-08-17T09:56:18.556200
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 *
import json

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():

    version = control['version'].split('-',1)[0]
    if iswin64():
        if installed_softwares('HandBrake'):
            key = WAPT.uninstall_cmd('HandBrake')
            if r'C:\Program Files (x86)' in key[0]:
                 run(WAPT.uninstall_cmd('HandBrake'))
        install_exe_if_needed('HandBrake-%s-x86_64-Win_GUI.exe' % version,silentflags='/S -',key='HandBrake',min_version=version,killbefore=['HandBrake.exe'])

    remove_desktop_shortcut('HandBrake')


def update_package():
  
    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}
    binaryfile,urlfile  = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/HandBrake/HandBrake/releases/latest',proxies=proxy))['assets'] if '-x86_64-Win_GUI.exe' in p['name']][0]

    if not isfile(binaryfile):
        wget(urlfile,binaryfile,proxies=proxy)

    for f in glob.glob('*.exe'):
        if f != binaryfile:
            remove_file(f)

    lastversion = binaryfile.split('-')[-3]
    print('Last Version %s' % lastversion)

    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = lastversion + '-0'
    pe.save_control_to_wapt(os.getcwd())

if __name__ == '__main__':
    update_package()


fb0d2788f2bd9789e3ed5a533691d3e6fbea394e9435c3881f57613fe1ea8af1 : HandBrake-1.4.1-x86_64-Win_GUI.exe
0c1b6533d17aaaa7a7a2f943b77fd8710e0de38939f1410fca33f9972059f77d : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d46944b977198f5333feedd3bea127928607e7e886e53b01251284450e6a8385 : WAPT/icon.png
6fa65e0c47b3d167d60186c8153c7f37ccb44696216fd4e067cbe3d5836f49bb : WAPT/wapt.psproj
5bca2bafd9a58c4023a095f72fe055ef3e515ebb14aeeebe99b9de3ddf28a006 : WAPT/control