tis-inkscape icon

Inkscape

Paquet d’installation silencieuse pour Inkscape

1.4-14

  • package: tis-inkscape
  • name: Inkscape
  • version: 1.4-14
  • categories: Utilities
  • maintainer: WAPT Team,Jimmy PELÉ,Simon Fonteneau
  • editor: Inkscape.org
  • licence: GPLv3+
  • locale: all
  • target_os: windows
  • impacted_process: inkscape
  • architecture: x64
  • signature_date:
  • size: 105.66 Mo
  • homepage : https://inkscape.org/

package           : tis-inkscape
version           : 1.4-14
architecture      : x64
section           : base
priority          : optional
name              : Inkscape
categories        : Utilities
maintainer        : WAPT Team,Jimmy PELÉ,Simon Fonteneau
description       : Inkscape is a free vector drawing software under the GNU GPL license
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 1.5
sources           : https://gitlab.com/inkscape/inkscape
installed_size    : 
impacted_process  : inkscape
description_fr    : Inkscape est un logiciel libre de dessin vectoriel sous licence GNU GPL
description_pl    : Inkscape jest wolnym programem do rysowania wektorów na licencji GNU GPL
description_de    : Inkscape ist ein freies Vektorzeichenprogramm unter der GNU GPL Lizenz
description_es    : Inkscape es un software libre de dibujo vectorial bajo la licencia GNU GPL
description_pt    : Inkscape é um software livre de desenho vectorial sob a licença GNU GPL
description_it    : Inkscape è un software di disegno vettoriale gratuito con licenza GNU GPL
description_nl    : Inkscape is een gratis vectortekenprogramma onder de GNU GPL licentie
description_ru    : Inkscape - это бесплатная программа для рисования векторов под лицензией GNU GPL
audit_schedule    : 
editor            : Inkscape.org
keywords          : inkscape,drawing,vector
licence           : GPLv3+
homepage          : https://inkscape.org/
package_uuid      : 8464123d-c306-4510-94c1-23b1ab4c1922
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://inkscape.org/release
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-19T08:00:42.000000
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
signature         : qljIVkWrcX78I4MXX9L0vWLQX0ziyMYhTMiw0XX9ev/xdJwd7RbuEb+SbM4szSMkqpI5EvORB184eAfSD+rJQihPijlb/YW6Jr6bKy0OtOPMAKZGpnFR3QzoLMpFbagbI3sNQ+XiAwbHcFamvalxWP1MjKCeRdNFm+nUrimFARof8yXLIkIC9I+rtjzy1SSpGYBFEFSq7y7a+4ol0PDLyPRstQka2d1GncvEYfk7/rdGMoJRwmTi2lYfYIhKr1QH+6QsNUnxENA5lsNXt2Sz76cHMJvpNcPKGrIFN6pZF3srqO80dekMiBXiSdt3E4c/wPBLU6Ldb7E0JI7a+ul7Bg==

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


"""
https://inkscape.org/release/inkscape-1.3.2/windows/64-bit/:
    Please note: Always remove/uninstall the previous version before updating!

"""


def install():
    bin_name = glob.glob("inkscape-*-x64.exe")[0]

    # Uninstalling older version of software
    for to_uninstall in installed_softwares(uninstallkey="Inkscape"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(ensure_list(control.impacted_process))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    # Installing the package
    install_exe_if_needed(
        bin_name,
        silentflags="/S /ALLUSER=ON /CONTEXTMENU=OFF",
        key="Inkscape",
        min_version=control.get_software_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()

    url = "https://inkscape.org/release/?latest=1"

    # Getting latest version from official sources
    for bs_search in bs_find_all(url, "h2", proxies=proxies):
        if "Revisions" in bs_search.text:
            version = bs_search.findNext().findNext().find("label").text

    download_url_page = "https://inkscape.org/release/inkscape-%s/windows/64-bit/exe/dl" % version
    if control.architecture == "x86":
        download_url_page = download_url_page.replace("64-bit", "32-bit")
    download_url = "https://inkscape.org/" + wgets(download_url_page).split(".exe")[0].split("=")[-1] + ".exe"
    latest_bin = download_url.split("/")[-1]

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

    # # 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 or not update-package-sources
    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
c7f674561c63885b7efcd55354ce49f8d7ba2d1d2ed9a8cd98c3147fd23da5c5 : WAPT/control
a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9 : WAPT/icon.png
3fa5403238931a98266c3405b7165d4212408d4ff78af9b6bd057fac60db8ea9 : inkscape-1.4_2024-10-11_86a8ad7-x64.exe
6cdef5be0a74c487fe8428951271662e863d222c5307b07b6c99b4b2e2d1f257 : luti.json
3eab0d2c402b0536ec98fcc7caab225227d6a996650e7b81e5c8d01846775992 : setup.py
61432e527cb11a9f8ff426bd4c8131cbd5ead74a74e4463ea9914c9010778ee2 : update_package.py