tis-webview2

109.0.1518.69-2
runtime webview2
47792 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-webview2 icon
  • package : tis-webview2
  • name : Microsoft Edge WebView2 Runtime
  • version : 109.0.1518.69-2
  • categories : Dependency
  • maintainer : WAPT Team,Tranquil IT
  • editor : microsoft
  • licence :
  • locale : all
  • target_os : windows
  • impacted_process :
  • architecture : x86
  • signature_date : 2023-01-26 02:00
  • size : 133.10 Mo
package           : tis-webview2
version           : 109.0.1518.69-2
architecture      : x86
section           : base
priority          : optional
name              : Microsoft Edge WebView2 Runtime
categories        : Dependency
maintainer        : WAPT Team,Tranquil IT
description       : Microsoft Edge WebView2 Runtime
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://developer.microsoft.com/fr-fr/microsoft-edge/webview2/#download-section
installed_size    : 
impacted_process  : 
description_fr    : runtime webview2
description_pl    : runtime webview2
description_de    : Laufzeit Webview2
description_es    : webview2 en tiempo de ejecución
description_pt    : visualização web em tempo de execução2
description_it    : runtime webview2
description_nl    : runtime webview2
description_ru    : время выполнения webview2
audit_schedule    : 
editor            : microsoft
keywords          : 
licence           : 
homepage          : 
package_uuid      : 3383b872-6ecb-4318-9e29-976a7543459a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : hqrAphoHrxzcCrTPTwbGqm0SEMD6AsxC4fvcj6vYCFmHWcKcNspKPJK7SjvPkISFtraDzocj1b3W8DbMnS9la7f9/0sqi1AFoNYOR5LatjX/W89v6DFbQ43Shwjc1Id0DZozzsdmWpNSDy93vTMm7XwT51iI5sq/OJlqaBvuO5eXVsHaofJA3luGfyusYRgSbgbZjHFG3AeVpAA7clmbzho0lerWL92ECjQEa+RikWnOmEeAYHhv6aoueAGVk6MfbbMHQPEursBURic62ofWaeViRN7Ecl0i586mv+j6UaFK60Z4WLyk4YEmAkq8nwd3FR6RZfvd0rIt7YoUv4PhZQ==
signature_date    : 2023-01-26T02:00:19.869796
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *

app_uninstallkey = "Microsoft EdgeWebView"


def install():
    bin_name = glob.glob("MicrosoftEdgeWebView2RuntimeInstaller*.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags="/silent /install",
        key=app_uninstallkey,
        min_version=control.get_software_version(),
    )
    uninstallkey.clear()


def uninstall():
    for to_uninstall in installed_softwares(uninstallkey=app_uninstallkey):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(control.impacted_process.split(","))
        app_uninstall_cmd = uninstall_cmd(to_uninstall["key"])
        app_uninstall_cmd[5] = "--force-uninstall"
        app_uninstall_cmd.remove("--verbose-logging")
        run(app_uninstall_cmd, accept_returncodes=[0, 300, 19])
        wait_uninstallkey_absent(to_uninstall["key"])


def audit():
    # Getting installed software version
    if installed_softwares(uninstallkey=app_uninstallkey):
        installed_version = installed_softwares(uninstallkey=app_uninstallkey)[0]["version"]
    else:
        installed_version = None

    # Auditing software
    print("Auditing: %s" % control.package)
    if installed_version is None:
        print("%s is not installed" % control.name)
        return "ERROR"
    # elif Version(installed_version) != Version(control.get_software_version()):
    #     print("%s is installed in version (%s) instead of (%s)" % (control.name, installed_version, control.get_software_version()))
    #     return "WARNING"
    else:
        print("%s is installed in correct version (%s)" % (control.name, installed_version))
        return "OK"
# -*- coding: utf-8 -*-
from setuphelpers import *
import sys
import time
import os
import glob

"""     
    "update_package_dependencies": [
        "tis-wapt-selenium",
        "tis-chrome"
    ]
"""


def update_package():
    # Importing Selenium with tis-wapt-selenium package
    sys.path.insert(0, makepath(WAPT.wapt_base_dir, "selenium"))
    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    from selenium.webdriver.common.by import By

    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    arch_dict = {
        "x64": "MicrosoftEdgeWebView2RuntimeInstallerX64.exe",
        "x86": "MicrosoftEdgeWebView2RuntimeInstallerX86.exe",
        "arm64": "MicrosoftEdgeWebView2RuntimeInstallerARM64.exe",
    }
    latest_bin = arch_dict[control.architecture]

    # Deleting binaries
    for f in glob.glob("*.exe") + glob.glob("*.msi"):
        print("Removing: %s" % f)
        remove_file(f)

    version = control.get_software_version()
    current_path = os.getcwd()
    chrome_options = Options()
    chrome_options.add_argument("--headless")
    chrome_options.add_argument("--disable-notifications")
    chrome_options.add_experimental_option(
        "prefs",
        {
            "download.default_directory": f"{current_path}",
            "download.prompt_for_download": False,
            "download.directory_upgrade": True,
            "safebrowsing_for_trusted_sources_enabled": False,
            "safebrowsing.enabled": False,
        },
    )

    # download with selenium
    driver = webdriver.Chrome(options=chrome_options, executable_path=makepath(WAPT.wapt_base_dir, "selenium", "chromedriver.exe"))
    driver.get("https://developer.microsoft.com/fr-fr/microsoft-edge/webview2/#download-section")

    # get latest version version
    version = driver.find_element(By.XPATH, "/html/body/div[1]/div[2]/article/section[2]/section[2]/div/div[2]/div[3]/div/select[1]/option[1]").text
    driver.find_element(By.ID, control.architecture).click()
    driver.find_element(By.ID, "accept-evergreen").click()
    wait_download()
    driver.quit()

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated


def wait_download(delay=360):
    loop = 0
    while not glob.glob("*.exe"):
        loop += 3
        if loop > delay:
            break
        time.sleep(3)
923d649fc2fc467537fd553f9754179486392f45a68d1aa04a6d65c5227acc5a : setup.py
b29fc79feee0bfe2cb176ee6009d1cec504d8247193053f49220b2b99f036d79 : update_package.py
3758d49d7e871f2fd78bf642bc8439456f288c326bac0fabf448e43711263937 : MicrosoftEdgeWebView2RuntimeInstallerX86.exe
a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 : WAPT/changelog.txt
47a2212e4316b9b39a42e29870c35ad6c596b052dcc77ff69a9746753a0ccb46 : luti.json
d611bc69f5025a3a5395e0d4c63847467e377eb533d2720faeb95ae874329fc9 : WAPT/control