tis-chromium

81.0.4026.0-31
Chromium Web Browser - Latest commit build from Google
443811 downloads
Download
default icon

  Description 

  • package : tis-chromium
  • version : 81.0.4026.0-31
  • architecture : x86
  • categories : browser
  • maintainer : TIS, Amelie LE JEUNE
  • description : Chromium Web Browser - Latest commit build from Google
  • locale :
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://srvdev.ad.tranquil.it/sources/tis-chromium-wapt/trunk
  • installed_size :
  • impacted_process : chrome.exe
  • description_fr : Navigateur Web Chromium - version developpement par Google
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Google
  • licence :
  • signature_date : 2020-02-27T21:29:20.628783
  • Homepage : https://www.chromium.org/getting-involved/download-chromium
  • Conflicts :

  Setup.py 

# -*- coding: UTF-8 -*-
from setuphelpers import *

uninstallkey = []
required_params = []

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

    get_disk_free_space_before = get_disk_free_space(programfiles)

    exe_name = "mini_installer.exe"

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

    install_exe_if_needed(exe_name, "--system-level --do-not-launch-chrome /norestart /i",key='Chromium',killbefore='Chromium')

    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))

def session_setup():
    print('Hide API missing message at startup')
    run('setx GOOGLE_API_KEY "no"')
    run('setx GOOGLE_DEFAULT_CLIENT_ID "no"')
    run('setx GOOGLE_DEFAULT_CLIENT_SECRET "no"')


def update_package():
    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

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

    for file_exe in glob.glob('*x64.exe'):
        remove_file(file_exe)
    wget('https://storage.googleapis.com/chromium-browser-snapshots/Win/'+latest_commit+'/mini_installer.exe','mini_installer.exe',proxies=proxies)

    version_chromium = getproductprops('mini_installer.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('.')

    latest_file.close()
    remove_file(r'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.txt.
									
  manifest.sha256