tis-chrome 68.0.3440.75-1

  • package : tis-chrome
  • version : 68.0.3440.75-1
  • description : Google Chrome is a web browser created by Google and based on the open source project Chromium
  • maintainer : Simon Fonteneau
  • date : 2018-07-25 17:23:01

setup.py

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

from subprocess import CalledProcessError

uninstallkey = []

def install():
    print('installing tis-chrome')
    versionpaquet = control['version'].split('-',1)[0]
    chromepath=makepath(programfiles32,'Google','Chrome','Application','chrome.exe')

    if isfile(chromepath):
        if Version(get_file_properties(chromepath)['ProductVersion']) > Version(versionpaquet):
            print('File %s version is : %s ' % (chromepath,get_file_properties(chromepath)['ProductVersion']))
            print('Paquet version is : %s ' % versionpaquet)
            print('------ SKIP ------')
            return 0

    def getversionchrome(key):
        return get_file_properties(chromepath)['ProductVersion']

    if iswin64():
        install_msi_if_needed('GoogleChromeStandaloneEnterprise64-fr.msi',min_version=versionpaquet,killbefore='chrome.exe',get_version=getversionchrome)
    else:
        install_msi_if_needed('GoogleChromeStandaloneEnterprise32-fr.msi',min_version=versionpaquet,killbefore='chrome.exe',get_version=getversionchrome)

def update_package():

    import time
    proxy = {'http':'http://srvproxy:3128','https':'http://srvproxy:3128'}
    #proxy = {}
    wget('https://dl.google.com/tag/s/appguid={8A69D345-D564-463C-AFF1-A69D9E530F96}&iid={00000000-0000-0000-0000-000000000000}&lang=fr&browser=3&usagestats=0&appname=Google%2520Chrome&needsadmin=prefers/edgedl/chrome/install/GoogleChromeStandaloneEnterprise.msi','GoogleChromeStandaloneEnterprise32-fr.msi',proxies=proxy)
    wget('https://dl.google.com/tag/s/appguid={00000000-0000-0000-0000-000000000000}&iid={00000000-0000-0000-0000-000000000000}&lang=fr&browser=4&usagestats=0&appname=Google Chrome&needsadmin=true/dl/chrome/install/googlechromestandaloneenterprise64.msi','GoogleChromeStandaloneEnterprise64-fr.msi',proxies=proxy)

    if iswin64():
        chrome = 'GoogleChromeStandaloneEnterprise64-fr.msi'
    else:
        chrome = 'GoogleChromeStandaloneEnterprise32-fr.msi'

    run(r'msiexec /norestart /q /i "%s" ' % chrome)

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = get_file_properties(makepath(programfiles32,'Google','Chrome','Application','chrome.exe'))['ProductVersion'] + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()







    

Changelog

No changelog
    

manifest.sha256

[["GoogleChromeStandaloneEnterprise64-fr.msi", "4cf9bfdb43168594ad3384b8e801da7a13bc6f0feb4cc1748d9026f0def4aed2"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "e306ae088b4ffc91364d6f53a3933bffa75f4bc4f8a3d6ff422209e90760feb0"], ["setup.py", "bd3a9d6a6129de7dea5fb63ea44b33fa03e5b6cf98ddab4f42cc829bf2b5830a"], ["GoogleChromeStandaloneEnterprise32-fr.msi", "ad36f66821041040b07bbded7c4ef9c1b234ebfef6b335d2684491c0d1d1ef23"], ["WAPT/control", "1337e0d99461fe0cfd8530f4107873e1c28502f1c4f7a4f556b1ed98e8a327ff"]]