tis-gimp

2.10.20-3
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.
9552 downloads
Download

  Description 

  • package : tis-gimp
  • version : 2.10.20-3
  • architecture : all
  • 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.
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://www.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 :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : The GIMP Development Team
  • licence : GPLv3+
  • signature_date : 2020-06-18T12:14:39.858000
  • Homepage : https://www.gimp.org/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'gimp-%s-setup.exe'
silent_args = '/VERYSILENT /NORESTART /RESTARTEXITCODE=3010 /SUPPRESSMSGBOXES /SP- --disable-check-update'
app_uninstallkey = 'GIMP-2_is1'
sys_conf_file = makepath(programfiles,'GIMP 2','etc','gimp','2.0','gimprc')

def install():
    # Specific app values
    package_version = control.version.split('-')[0]
    bin_name = bin_name_string % package_version
    bin_name_glob = glob.glob(bin_name.split('.')[0]+'*')[0]

    # Installing the package
    install_exe_if_needed(bin_name_glob
        ,silentflags=silent_args
        ,key=app_uninstallkey
        ,min_version=package_version)

    # 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 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 = control.sources

    # Getting latest version from official website
    page = requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},proxies=proxy).text
    bs = BeautifulSoup.BeautifulSoup(page,features="html.parser")
    bs_raw_string = bs.find('a',{'id':'win-download-link'})

    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=proxy)

        # Checking version from file
        version_from_file = get_file_properties(latest_bin)['ProductVersion']
        if version != version_from_file and version_from_file != '':
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % version
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin,latest_bin)

		# 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')
    else:
        print('This package is already up-to-date')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)



										

  Changelog 


Changelog software url : https://www.gimp.org/release-notes/

No changelog
  manifest.sha256 
[["gimp-2.10.20-setup-1.exe","430b1a709cd89b5cddb857032a7a5b93199d076ff8cd83ebdd0112330b65ba51"],["setup.py","ab0f64a81f86c871009891aea61163db6b4ba1e2b15eadd6673c42c0d7b6b94e"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","8c35540fff46fd75507afc4849687b9846c269e59a681d95d0873ae073a169fc"],["WAPT/control","849be230846b16e1c8cf7bb640a6222d03a790656c40686ca9bcadab1f2e5516"]]