tis-teamviewer 12.0.77242.0-1

  • package : tis-teamviewer
  • version : 12.0.77242.0-1
  • description : automatic package for TeamViewer (TeamViewer GmbH)
  • maintainer : dcardon, Amelie LE JEUNE
  • date : 2018-02-27 19:08:26

setup.py

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

uninstallkey = []

def install():
    print('installing tis-teamviewer')
    versionpaquet=get_file_properties("TeamViewer_Setup_fr.exe")['ProductVersion']
    install_exe_if_needed("TeamViewer_Setup_fr.exe", '/S', min_version=versionpaquet)



def uninstall():
        print('Removing Teamviewer')
        run('"%s" %s ' % (makepath(install_location('TeamViewer'), 'uninstall.exe'),'/S'))



def update_sources():

    """Update to current version from macromedia"""
    os.chdir(os.path.dirname(__file__))

    page = wgets('https://www.teamviewer.com/fr/download/windows/')
    for line in page.splitlines() :
        if 'TeamViewer_Setup.exe' in line :
            wget(line[line.find('https'):line.find('.exe')]+'.exe','TeamViewer_Setup_fr.exe')

    versionpaquet=get_file_properties("TeamViewer_Setup_fr.exe")['ProductVersion']


    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = versionpaquet + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_sources()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "027c1e82ee921d53fc19929ef9eef8510e897e12e6f1a4fe4fe84692948c6ace"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "798d3fe459b24e0460ace5be62ed6f6a46b3628442db63889ed4697c27047eb6"], ["TeamViewer_Setup_fr.exe", "e2ab98f8720aa90a03a2f60afc3e1a6e693a16f60df4f07a3dae15cd1c993e21"], ["setup.py", "f753345ea2595b6048c9da16b6badaaab471ebf932571adfed1d3455e6a2827a"], ["WAPT/control", "7f139f9fc980569eb0b50351b32a8cdd2dd785922d7d7427ea9a54c95e32f74e"]]