tis-chromium 60.0.3100.0-6

  • package : tis-chromium
  • version : 60.0.3100.0-6
  • description : Navigateur Web Chromium
  • maintainer : TIS, Amelie LE JEUNE
  • date : 2018-02-27 18:58:08

setup.py

from setuphelpers import *

uninstallkey = []
required_params = []

build32 = '471616'
build64 = '471616'

def update_control(entry):
    setup_exe = glob.glob('mini_installer.exe')
    rel = entry.version.split('-')
    version = get_file_properties(setup_exe[0])['FileVersion']
    if len(rel)>1:
        version = version + '-%s' % rel[1]
    entry.version = version

def install():
    print "installing Chromium %s system wide" % control.version
    if windows_version()<='5.1':
        WAPT.install('tis-chromium(=48)')
    else:
        if iswin64():
            install_exe_if_needed("mini_installer_x64.exe", "--system-level --do-not-launch-chrome /norestart /i",key='Chromium',killbefore='Chromium')
        else:
            install_exe_if_needed("mini_installer.exe", "--system-level --do-not-launch-chrome /norestart /i",key='Chromium',killbefore='Chromium')
        # not silent, so handle is manually in uninstall...
    uninstallkey.remove('Chromium')

def update_package():
    wget('https://storage.googleapis.com/chromium-browser-snapshots/Win/%s/mini_installer.exe' % build32,'mini_installer.exe')
    wget('https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/%s/mini_installer.exe' % build64,'mini_installer_x64.exe')


def uninstall():
    soft = installed_softwares('Chromium')[0]
    if soft:
        killalltasks('Chromium')
        run_notfatal(soft['uninstall_string']+'  --force-uninstall --qn',accept_returncodes=[0,19,20,21])

if __name__ == '__main__':
    update_package()


    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "195de4421a6a81e2d7b4fcdec5ae7dd1733e781615ccc707a02c22befa087ca8"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["mini_installer.exe", "a427b127044205f9975a9b143e9d532b6a6953e8195601e933f19d96c4fb49a4"], ["mini_installer_x64.exe", "0ceb085583b187d18fa3df69da48cf6d0b49dd08a7c4445c9c4fcc4a3434c4f0"], ["setup.py", "33aa342593425608fbf9953ed9f156eaf3f43222e729ea4c8811915b67cc95d1"], ["WAPT/control", "fc8cc7086d627fba53c6e4ed51601989f8b03c3557a700a9247e85d7effa182b"]]