tis-gimp icon

GIMP

Paquet d’installation silencieuse pour GIMP

3.0.4.0-2

  • package: tis-gimp
  • name: GIMP
  • version: 3.0.4.0-2
  • categories: Media
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELE,Simon Fonteneau
  • editor: The GIMP Development Team
  • licence: GPLv3+
  • locale: all
  • target_os: windows
  • impacted_process: gimp
  • architecture: all
  • signature_date:
  • size: 299.63 Mo
  • homepage : https://www.gimp.org/

package           : tis-gimp
version           : 3.0.4.0-2
architecture      : all
section           : base
priority          : optional
name              : GIMP
categories        : Media
maintainer        : WAPT Team,Tranquil IT,Jimmy PELE,Simon Fonteneau
description       : GIMP (GNU Image Manipulation Program) is a free and open-source raster graphics editor used for image retouching and editing, free-form drawing, converting between different image formats, and more specialized tasks.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 1.5
sources           : https://gimp.org/downloads/
installed_size    : 
impacted_process  : gimp
description_fr    : GIMP (GNU Image Manipulation Program) est un outil d'édition et de retouche d'image
description_pl    : GIMP (GNU Image Manipulation Program) to darmowy i open-source'owy edytor grafiki rastrowej wykorzystywany do retuszu i edycji obrazów, rysowania dowolnych form, konwersji pomiędzy różnymi formatami obrazów oraz bardziej specjalistycznych zadań
description_de    : GIMP (GNU Image Manipulation Program) ist ein freier und quelloffener Editor für Rastergrafiken, der für Bildretuschen und -bearbeitung, Freiformzeichnungen, Konvertierung zwischen verschiedenen Bildformaten und weitere spezielle Aufgaben verwendet wird
description_es    : GIMP (GNU Image Manipulation Program) es un editor de gráficos rasterizados gratuito y de código abierto que se utiliza para el retoque y la edición de imágenes, el dibujo de forma libre, la conversión entre diferentes formatos de imagen y otras tareas más especializadas
description_pt    : GIMP (GNU Image Manipulation Program) é um editor gráfico raster gratuito e de código aberto utilizado para retoque e edição de imagens, desenho de formas livres, conversão entre diferentes formatos de imagem, e tarefas mais especializadas
description_it    : GIMP (GNU Image Manipulation Program) è un editor di grafica raster gratuito e open-source utilizzato per il ritocco e la modifica delle immagini, per il disegno a forma libera, per la conversione tra diversi formati di immagine e per compiti più specializzati
description_nl    : GIMP (GNU Image Manipulation Program) is een vrije en open-source grafische bewerker voor rasterafbeeldingen die wordt gebruikt voor het retoucheren en bewerken van afbeeldingen, tekenen in vrije vorm, converteren tussen verschillende afbeeldingsformaten, en meer gespecialiseerde taken
description_ru    : GIMP (GNU Image Manipulation Program) - это бесплатный редактор растровой графики с открытым исходным кодом, используемый для ретуширования и редактирования изображений, рисования в свободной форме, преобразования между различными форматами изображений и других специализированных задач
audit_schedule    : 
editor            : The GIMP Development Team
keywords          : gimp,gnu,image,manipulation,program,raster,graphic,graphics,editor,retouching,editing,drawing
licence           : GPLv3+
homepage          : https://www.gimp.org/
package_uuid      : 1950730c-fef6-430d-b1e1-219bde69e2a0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.gimp.org/release-notes/
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 8c35540fff46fd75507afc4849687b9846c269e59a681d95d0873ae073a169fc
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-24T13:00:24.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         : XnS85c8DktmTrdbw4B28tzxaRhKZMKwc+js7GvRh6cu4ImY/q2iiF1LywKL/U7aUcts2awwWj12X0Nmh+Vh2Rsz7MNjNblUAoMAbOqoCPA39pp2Pq7Meb/u3yeK+vQYYxE31RSLyxhz9ioN71rWI2AA+PgI+eJEJwuuZy3NH7Y2JYERsHRw63nN8KE8BwjtXRyoFj9BSITzRIhAOevzcZ0aY9i2AwZ4eIl0BJygh+kapOQjoI3lmepA+Iv6tqDs95ZxNRmmF5beIsPmlSvUdUfxHNFDMoO/wzx3n0BcLz+ECqqNh8BnpOHZNoKLMT/cCqdxUKWcR1KUC43Wm457ayQ==

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


def install():


    # Uninstalling the software
    for to_uninstall in installed_softwares("Gimp"):
        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"])

    # Specific app values
    version = control.get_software_version().rsplit(".",2)[0]
    short_version = version.split(".")[0] 
    sys_conf_file = makepath(programfiles, f"GIMP {short_version}", "etc", "gimp", f"{version}", "gimprc")
    package_version = control.version.split("-")[0]
    bin_name = "gimp-%s-setup.exe" % package_version
    bin_name_glob = glob.glob(bin_name.split(".")[0] + "*")[0]

    # Installing the package
    install_exe_if_needed(bin_name_glob, silentflags="/VERYSILENT /NORESTART /RESTARTEXITCODE=3010 /SUPPRESSMSGBOXES /SP- --disable-check-update /ALLUSERS", key=f"GIMP-{short_version}_is1", min_version=package_version, timeout=1200)

    # Disabling update check
    if isfile(sys_conf_file):
        fichier = open(sys_conf_file, "r")
        data = fichier.read()
        fichier.close()

        if "# (check-updates yes)" in data:
            data = data.replace("# (check-updates yes)", "(check-updates no)")
        if "(check-updates yes)" in data:
            data = data.replace("(check-updates yes)", "(check-updates no)")

        fichier = open(sys_conf_file, "w")
        fichier.write(data)
        fichier.close()


def get_version_from_binary(filename, property_name="ProductVersion"):
    r"""Get installer version from file informations, for now, only exe and msi files are compatibles

    Args:
        filename (str): path to the file
        property_name (str): selected property

    Returns:
        str: version number

    """
    if filename.endswith(".msi"):
        return get_msi_properties(filename)[property_name]
    else:
        return get_file_properties(filename)[property_name]


def uninstall(): 
    
    # Uninstalling the software
    for to_uninstall in installed_softwares("Gimp"):
        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"])

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


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    # Specific app values
    app_name = control.name
    url = control.sources

    # Getting latest version from official website
    bs_raw_string = bs_find(url, "a", "id", "win-download-link", proxies=proxies)

    url_dl = "https:%s" % bs_raw_string["href"]
    latest_bin = url_dl.split("/")[-1]
    version = latest_bin.split("-")[1]

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

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

        # Checking version from file
        version_from_file = get_file_properties(latest_bin)["ProductVersion"]
        if version != version_from_file and version_from_file != "":
            print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
            os.rename(latest_bin, latest_bin.replace(version, version_from_file))
            version = version_from_file

        # Changing version of the package
        pe = PackageEntry().load_control_from_wapt(".")
        pe.version = "%s-%s" % (version, int(pe.version.split("-", 1)[1]) + 1)
        pe.save_control_to_wapt(".")
        print("Changing version to " + pe.version + " in WAPT\\control")
        print("Update package done. You can now build-upload your package")

    # Changing version of the package
    if Version(version) != control.get_software_version():
        print("Software updated to version: %s" % Version(version))
        result = True
    control.version = "%s-%s" % (version, control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8d7d40829f2351228b06360eec33d23c5a090501671617d000af8bc3bd57756f : WAPT/control
8c35540fff46fd75507afc4849687b9846c269e59a681d95d0873ae073a169fc : WAPT/icon.png
385e36fe577cbdbfc71ba79d6c046d6f4eaabc01effd7f067bf15fd98410b2a1 : gimp-3.0.4.0-setup.exe
e6c8421f11999b245fcef7f55595fde9aeb79faf51a1261846ff0caa64008315 : luti.json
b1450706de1f3e8cc6ffee3733dd580d4b91ed5890fcdd3dd29551122cfdea05 : setup.py
54bd0f0ca0f6a198227f38ea744fc60d68a7168dc243a111f266464c7b738eb2 : update_package.py