tis-inkscape icon

Inkscape

Paquet d’installation silencieuse pour Inkscape

1.3.2-13

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

package           : tis-inkscape
version           : 1.3.2-13
architecture      : x86
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      : b7423410-56c8-43a9-864a-ccfd10686964
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         : FFn6bxEkCD9i121EOKbCgSha4tO7DY9c3fxAeJZi13qT7Rrsb4iEYosA2UJs8PBHjNaQUfv/ZJ3dDGiT+w3hCodV+hHps9Lp0BY3YSJsHvCBl2dpQVISGwgetl78SERrl880tBG4GSiv/NPS2tEHKIz0jMJ88fFDBI7cZpaSzVYndhKNGWFRitzvass18fFn7ZvNiKzX54AS/B5zutiVT0ruPG/gG13V43se8ut/69324gWedTRIvToR7bXRmX/oFzntdlW/iJEJW5WO7Ek3IqJr4NR6T2mXUUSn5K+Z3gcfE8PpSSkE/osDBOWA8cg2szcjsPW/Drker1oEfnnGKA==
signature_date    : 2023-12-02T23:02:13.796381
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 *


# Declaring specific app values (TO CHANGE)
bin_name_string = "inkscape-%s-x86.exe"
silent_args = "/S /ALLUSER=ON /CONTEXTMENU=OFF"


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

    bin_name = bin_name_string % package_version

    # Uninstalling version installed with exe instead of msi
    for uninstall in installed_softwares("inkscape"):
        if "msiexec.exe" in str(uninstall_cmd(uninstall["key"])).lower():
            run(uninstall_cmd(uninstall["key"]))

    # Installing the package
    install_exe_if_needed(
        bin_name,
        silentflags=silent_args,
        key="Inkscape",
        min_version=package_version,
        get_version=get_version_ink,
    )


def get_version_ink(key):
    return key["version"].split("-")[0]

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import requests
import bs4 as BeautifulSoup


# Declaring specific app values (TO CHANGE)
bin_name_string = "inkscape-%s-x86.exe"


def update_package():
    print("Download/Update package content from upstream binary sources")

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system() == "Windows" and isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxy = {"http": proxywapt, "https": proxywapt}

    # Specific app values
    app_name = control.name
    url = "https://inkscape.org/release/?latest=1"

    # Getting latest version from official website
    page = requests.get(url, proxies=proxy).text
    bs = BeautifulSoup.BeautifulSoup(page)
    bs_raw_string = bs.find("h2", text="Revisions")
    label = bs_raw_string.findNext().findNext()
    version = label.find("label").text

    latest_bin = bin_name_string % version
    url_dl = "https://inkscape.org/release/inkscape-%s/windows/32-bit/exe/dl" % version
    bin_url = "https://inkscape.org/" + wgets(url_dl).split(".exe")[0].split("=")[-1] + ".exe"

    print("Latest " + app_name + " version is: " + version)
    print("Download url is: " + url_dl)

    if len(version.split(".")) == 2:
        version = version + ".0"

    newfilename = bin_name_string % version

    # Downloading latest binaries
    if not isfile(newfilename):
        print("Downloading: " + latest_bin)
        wget(bin_url, newfilename, proxies=proxy)

        # Change version of the package
        control.version = "%s-%s" % (version, int(control.version.split("-", 1)[1]) + 1)
        control.save_control_to_wapt(".")
        print("Changing version to " + control.version + " in WAPT\\control")
        print("Update package done. You can now build-upload your package")
    else:
        print("This package is already up-to-date")

    # Deleting outdated binaries
    for bin_in_dir in glob.glob("*.exe"):
        if bin_in_dir != newfilename:
            print("Outdated binary: " + bin_in_dir + " Deleted")
            remove_file(bin_in_dir)

250b6264a7735aa80880308bf80d50b776e6ea1412a4d9eebcbc28e7a97fec77 : setup.py
c2c6c5101dd3ae4c4107aab6f06d9ddd769a530662f14226db1fe7976aed5911 : update_package.py
a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a6fb426e9594abff95e06663bd6ebda562db658591fb8fc7f0e4ed1ef8ff41df : luti.json
27ad42cb23f9d81873dea3c8bea9e62b10c7e662fa0a1887de233487406310ff : inkscape-1.3.2-x86.exe
658aa54e5dd9c52de11932c5c498442a2ad11a4f11cc0cd27365118fea1be466 : WAPT/control