tis-chromium

89.0.4355.0-35
Chromium Web Browser - Latest commit build from Google
443811 downloads
Download
default icon

  Description 

  • package : tis-chromium
  • version : 89.0.4355.0-35
  • architecture : x86
  • categories : Internet
  • maintainer : WAPT Team,Jimmy PELÉ,Amelie LE JEUNE,Alexandre GAUVRIT
  • 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 : 381640576
  • impacted_process : chrome
  • 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-12-14T11:11:21.140540
  • Homepage : https://www.chromium.org/getting-involved/download-chromium

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'mini_installer.exe'
silent_args = ' --system-level --do-not-launch-chrome /norestart /i'
silent_uninst_args = ' --force-uninstall'
app_uninstallkey = 'Chromium'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]

    # Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    install_exe_if_needed(bin_name_string
        ,silentflags=silent_args
        ,key=app_uninstallkey
        ,min_version=package_version
        ,accept_returncodes=[0,19,21])

    uninstallkey.remove(app_uninstallkey)

    # Return used storage of the program. (place it on the bottom)
    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 uninstall():
    soft = installed_softwares('Chromium')[0]

    if soft:
        killalltasks('Chromium')
        run(soft['uninstall_string'] + silent_uninst_args,accept_returncodes=[0,19,20,21])


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():
    print('Download/Update package content from upstream binary sources')

    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    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('*.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 = get_version_from_binary('mini_installer.exe')

    # Changing version of the package
    control.version = '%s-%s'%(version_chromium,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing package version to: %s in WAPT\\control' % control.version)

    latest_file.close()
    remove_file(r'latest.txt')




def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()


def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies


def get_version_from_binary(filename):
    if filename.endswith('.msi'):
        return get_msi_properties(filename)['ProductVersion']
    else:
        return get_file_properties(filename)['ProductVersion']


										

  Changelog 



No changelog.txt.
									
  manifest.sha256