tis-skype 7.40.32.103-14

  • package : tis-skype
  • version : 7.40.32.103-14
  • description : Skype is a telecommunications application software product that specializes in providing video chat and voice calls from computers, tablets, and mobile devices via the Internet to other devices or telephones/smartphones
  • maintainer : Simon Fonteneau
  • date : 2017-09-13 10:23:57
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170913-102357
  • min_os_version :
  • min_wapt_version :

setup.py

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

uninstallkey=[]

def install():
    product_version = control['version'].split('-',1)[0]

    oldskype = installed_softwares('skype')
    for soft in oldskype:
        if Version(soft['version'])<Version(product_version):
            print("remove : %s " % soft['name'])
            run_notfatal(uninstall_cmd(soft['key']))
    print('installing Skype %s' % product_version)
    # hack... several properies with same key TRANSFORMS
    install_msi_if_needed('SkypeSetup.msi',
        properties = dict(STARTSKYPE="FALSE",TRANSFORMS=':RemoveDesktopShortcut.mst TRANSFORMS=:RemoveStartup.mst'))


def update_package():

    wget('http://www.skype.com/go/getskype-msi','SkypeSetup.msi')
    product_version = get_msi_properties('SkypeSetup.msi')['ARPVERSION']

    control = PackageEntry().load_control_from_wapt('.')
    packaging = control.version.rsplit('-',1)[1]
    control.version = product_version+'-'+packaging
    control.save_control_to_wapt('.')

if __name__ == '__main__':
    update_package()

    

manifest

[["WAPT/icon.png", "e2eacbce50feb8937475f65b3c3caa72adeb5ba8"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "7ccbe65afd42ee7794a86ed74eef48e3f5812c93"], ["SkypeSetup.msi", "4d5ff87c5d99d99acc21848ac92e6a4144ebdc9d"], ["setup.py", "71db3c2fce630d053f0442d95fb7a2128879428f"], ["WAPT/control", "6c1d90ca230eed3c1ab15759faa371e576fed890"]]