tis-svg-see

1.1.0-1
Module d'extension pour l'explorateur Windows permettant de rendre les vignettes SVG
519 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-svg-see icon
  • package : tis-svg-see
  • name : SVG See
  • version : 1.1.0-1
  • categories : Extension
  • maintainer : WAPT Team,Tranquil IT,italbot,Ingrid TALBOT
  • editor : Tibold Kandrai
  • licence : proprietary_free,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2023-09-17 17:03
  • size : 20.83 Mo
  • installed_size : 14.97 Mo
  • homepage : https://github.com/tibold/svg-explorer-extension/releases
package           : tis-svg-see
version           : 1.1.0-1
architecture      : x64
section           : base
priority          : optional
name              : SVG See
categories        : Extension
maintainer        : WAPT Team,Tranquil IT,italbot,Ingrid TALBOT
description       : Extension module for Windows Explorer to render SVG thumbnails
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://github.com/tibold/svg-explorer-extension/releases
installed_size    : 14974976
impacted_process  : 
description_fr    : Module d'extension pour l'explorateur Windows permettant de rendre les vignettes SVG
description_pl    : Moduł rozszerzeń dla Eksploratora Windows do renderowania miniatur SVG
description_de    : Erweiterungsmodul für den Windows Explorer zur Darstellung von SVG-Miniaturansichten
description_es    : Módulo de ampliación del Explorador de Windows para representar miniaturas SVG
description_pt    : Módulo de extensão para o Windows Explorer para renderizar miniaturas SVG
description_it    : Modulo di estensione per Windows Explorer per il rendering di miniature SVG
description_nl    : Uitbreidingsmodule voor Windows Verkenner om SVG-miniaturen weer te geven
description_ru    : Модуль расширения для Проводника Windows для отображения миниатюр SVG
audit_schedule    : 
editor            : Tibold Kandrai
keywords          : svg
licence           : proprietary_free,wapt_public
homepage          : https://github.com/tibold/svg-explorer-extension/releases
package_uuid      : 71581191-165f-47ec-9e17-eaa8bd7704ba
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 10acf3eea4c089917e93960255aa29807c1872f9946221ec1bca93575926910d
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : DDtvjbgvhF0h0EJ/b5KDwOmuCPe+4Xa2ACwJHfu4PW3PMrAXK6HfnUPqbFn4q0czX3RbwDyD4Ve67eWXNib9IvY7PB6+f2QYVORjh8ZNepcz0IdnsV+gMnlY5i1Saih6Kdpy+1OqYwpnjmgl5RDz/WOH5hj2u0Z1IZtg44jyqGLZyvYvv7eMDXAujx73ECF8iCtJsXsUuu6qgXeQddRIktC3E7r6bWM7RtsXuAgPs3SE+4+QjIDuKtRrlsGQ6cDKvInqdirbh3c906TyPjNEgwPWbxPn72fxb3k3tvA1rysjEbzKwcQX9RVrNbFIRgh0/7Ig+v3JZLDwJT4SrP+k9A==
signature_date    : 2023-09-17T17:03:17.078036
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 *


def get_soft_version(key):
    return key["name"].rsplit(" ")[-1]


def install():
    bin_name = glob.glob("svg_see_*.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT",
        key="{4CA20D9A-98AC-4DD6-9C16-7449F29AC08A}_is1",
        min_version=control.get_software_version(),
        timeout=600,
        get_version=get_soft_version,
    )
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/tibold/svg-explorer-extension/releases/latest"
    download_dict = {
        "windows-x64": "x64.exe",
        "windows-x86": "x86.exe",
    }
    download_str = download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]]

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "")
    for to_download in json_load["assets"]:
        if download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)
    # arch_list = ensure_list(control.architecture)
    # remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))

    # Checking version from file
    # if get_os_name() == "Windows" and "windows" in control.target_os.lower():
    #     version_from_file = get_version_from_binary(latest_bin)
    #     if Version(version_from_file, 4) == Version(version, 4):
    #         print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
    #     else:
    #         error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        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 update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)
cb536a5eb2833ab30e1220708ecf0a50035d7fd087a28f874c5b986ee3734b0b : setup.py
 : __pycache__
eeba73b52350fa5496521297d1c62871f0c90cdb19d86f93a129b94a0d8a073a : update_package.py
69f9721c6605b487bc78cd90439ec7b0819ad8bf77616f3cbf3b5e18b9fca6db : svg_see_x64.exe
10acf3eea4c089917e93960255aa29807c1872f9946221ec1bca93575926910d : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 : WAPT/changelog.txt
b0bd0be280489fd56410ca832f6f7311d1797b568cd0ba409ca64dd73938b6f9 : luti.json
74115dfa9ee9954e93ce86feedf09323f7933513ee87eb380e63df32917d341a : WAPT/control