tis-chromium 71.0.3544.0-15

  • package : tis-chromium
  • version : 71.0.3544.0-15
  • architecture : all
  • locale :
  • description : Navigateur Web Chromium
  • maintainer : TIS, Amelie LE JEUNE
  • date : 2018-09-05 17:51:51
  • min_os_version : 6.0
  • max_os_version :

setup.py

from setuphelpers import *

uninstallkey = []
required_params = []

def install():
    print "installing Chromium %s system wide" % control.version

    for chromiums in installed_softwares('Chromium'):
        if Version(chromiums['version']) < Version(control.version):
            killalltasks('Chromium')
            run_notfatal(chromiums['uninstall_string']+'  --force-uninstall --qn',accept_returncodes=[0,19,20,21])

    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')


def update_package():
    latest = wget("https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2FLAST_CHANGE?alt=media",'latest.txt')
    latest_file = open(latest,'r')
    latest_commit = latest_file.read()

    for file_exe in glob.glob('*x64.exe'):
        remove_file(file_exe)
    #url sources : https://chromium.woolyss.com/download/fr/
    # 32bits bug : wget('https://storage.googleapis.com/chromium-browser-snapshots/Win/'+latest_commit+'/mini_installer.exe','mini_installer.exe')
    wget('https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/'+latest_commit+'/mini_installer.exe','mini_installer_x64.exe')

    version_chromium = getproductprops('mini_installer_x64.exe')['version']

    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-%s'%(version_chromium,int(control.version.split('-',1)[1])+1)
    control.save_control_to_wapt('.')

    remove_file('latest.txt')


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 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj e306ae088b4ffc91364d6f53a3933bffa75f4bc4f8a3d6ff422209e90760feb0
mini_installer.exe 8cc0629dc26607e00a6ae011414751f6016ba7e527f4b6961d42534998035b01
mini_installer_x64.exe fcc834f8ffef60e2cc5fd254bb545a4f13fd45ee0b372b152476ad7f8cd3ba11
setup.py edb91359d8333dcbb14e168f94235d917e88730cda4793202a5f7e23b1484b05
WAPT/control bae329f435de1d53d324a4dad93244500685f3a5680fd58f666994f03adaade4
latest.txt f8308d14e5f6e5b0319173a054ad3266a5dce971acd4933c58beecbdbb871325