tis-gimp icon

GIMP

Paquet d’installation silencieuse pour GIMP

3.0.0.0-2

  • package: tis-gimp
  • name: GIMP
  • version: 3.0.0.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: 384.76 Mo
  • homepage : https://www.gimp.org/

package           : tis-gimp
version           : 3.0.0.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      : 4b745d59-2332-443d-9a0d-009689b5bf8b
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-03-23T17:00:21.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         : osPwi25T73aAfSZyTeMCZptyaV06bhNjLSB44MzhTcACeEsuzcuUEq9DgoC512G9MrgyOM+7PV49P6NKT7XMyNmKRkUIUm0BWQO0xM3TvfCf42ENdoJ2RbsK0Tir2sd036NFG9+QZH2yZz4yRwMYQvTBl91+MkR983KGZman3wpd/NEJcHsvnNqaxMddg0DWcm5RmjBeGCgxF6ZAcCjmv9B9hN7+OqcpV+iXb44PyROIprc3Y9i4hmvhHRrsMnwHNt4+9SCNg2C5Rj+8Sa4t81g0PKSrStAn4oFiGi+eNs7voWmhmxuL+hKhFIf8HJF2to8M4SxiAyKeSYwcmBguIQ==

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


def install():
    # 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
ef303cd59be579506bf4ecfc8bfa911fdd2258f9e54f79d5cbe1207a386a75d8 : WAPT/control
8c35540fff46fd75507afc4849687b9846c269e59a681d95d0873ae073a169fc : WAPT/icon.png
ab6f9aa481120097f032c39f07cb70990929878fa65bf4ec6d1669d7a616770a : gimp-3.0.0.0-setup.exe
4fcf7d81eeda6f0b151e1112345ca446abe1176d426d8ac6d4326c036518685a : luti.json
a5772f7150cd5be5fda99b2d292d550e91db462c7fba44762172c546038bf5d7 : setup.py
54bd0f0ca0f6a198227f38ea744fc60d68a7168dc243a111f266464c7b738eb2 : update_package.py