tis-gimp

2.10.20-1
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.
9551 downloads
Download

  Description 

  • package : tis-gimp
  • version : 2.10.20-1
  • architecture : all
  • categories : Media
  • maintainer : WAPT Team,Jimmy PELÉ,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 : 1315201024
  • impacted_process : gimp.exe
  • 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 : Spencer Kimball,Peter Mattis
  • licence : GPLv3+
  • signature_date : 2020-06-12T10:04:42.562000
  • Homepage : https://www.gimp.org/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'gimp-%s-setup.exe'
silent_args = '/VERYSILENT /NORESTART /RESTARTEXITCODE=3010 /SUPPRESSMSGBOXES /SP-'
app_uninstallkey = 'GIMP-2_is1'


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

	# Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

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

	# Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


def update_package():
    print('Download/Update package content from upstream binary sources')
    from waptpackage import PackageEntry
    import requests

    # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'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)'}).text
    bs = BeautifulSoup.BeautifulSoup(page)
    # bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    bs_raw_string = bs.find('a',{'title':'Download GIMP via HTTP'})
    url_dl = 'https:' + bs_raw_string['href']
    version = (url_dl.split('/')[-1]).split('-')[1]
    #print(version)

    latest_bin = bin_name_string % version

    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)

		# Change version of the package
        print('Writing ' + version + '-0 in WAPT\\control')
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        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'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


if __name__ == '__main__':
    update_package()


										

  Changelog 


https://www.gimp.org/release-notes/
  manifest.sha256 
[["WAPT/icon.png","b97cf66ab169d89c69099515054f15242073faa88971060f8b5013c958421964"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["gimp-2.10.20-setup.exe","de68eafd3bf88bb868e015e3613b7415fcfe94cc20946c0b64ccd37f94e22017"],["WAPT/control","e0831165cbec8bbc8132d76e9fd76a513dd69fc37de35ad7ffcf49762d29251d"],["setup.py","3622156cc49558e4db19a5626b6ad061ac8cf34a7052c27bbe52819bb25a4176"],["Jenkinsfile","d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d"],["README.md","ffc634ff3a56993bd4304a2eaa5951a315309ae9861eda3391134456489e2139"],["WAPT/changelog.txt","258527defed1414d99992f249f2f888eabc813b3c0d11166b89bff7b5b328c3a"]]