tis-teamviewer 12.0.83369.0-1

  • package : tis-teamviewer
  • version : 12.0.83369.0-1
  • description : TeamViewer est un logiciel gratuit permettant de partager directement son ordinateur avec n'importe qui à travers le monde.
  • maintainer : Simon Fonteneau
  • 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_package():

    """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_package()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "027c1e82ee921d53fc19929ef9eef8510e897e12e6f1a4fe4fe84692948c6ace"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc"], ["TeamViewer_Setup_fr.exe", "b348e0701262f54dcb6fa7111973cde6940102e27691600977a124231ff38e92"], ["setup.py", "e25c2c049093cf27622e18ce0d84e48e2df9c9ac34bd2e34a2095fa310491234"], ["WAPT/control", "4c745cf899e87c112dfc30aa5413c6694df83fc8d62f231642a4de8fa4902482"]]