tis-gimp

2.10.14-3
9550 downloads
Download

  Description 

  • package : tis-gimp
  • version : 2.10.14-3
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description :
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process : gimp-2.10.exe
  • description_fr : Outil de retouche graphique Gimp
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:33:06.130249

  Setup.py 

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *

uninstallkey=[]

def install():

    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed("gimp-%s-setup.exe" % versionpaquet,silentflags='/VERYSILENT /NORESTART /RESTARTEXITCODE=3010 /SUPPRESSMSGBOXES /SP-',key='GIMP-2_is1',min_version=versionpaquet,killbefore=['gimp.exe'],timeout=900)


def update_package():

    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    import urlparse

    htmlSource = wgets("https://www.gimp.org/downloads/",proxies=proxies).splitlines()
    for line in htmlSource:
        if '.exe' in line :
            if not 'help' in line :
                if not 'torrent' in line :
                    urlgimp = 'https://download.gimp.org/mirror/pub/gimp/' + line[line.find("/gimp/") + 6 : line.find('" title') ]
                    filenamegimp = urlparse.unquote(urlgimp.rsplit('/',1)[1])
                    break


    vers = filenamegimp.split('-')[1]

    print 'Last Version = ' + vers

    allexe = glob.glob('*.exe')
    for exe in allexe:
        if exe != filenamegimp :
            remove_file(exe)

    if not isfile(filenamegimp):
        wget(urlgimp,filenamegimp,proxies=proxies)


    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()
										

  Changelog 


No changelog
  manifest.sha256 
[["gimp-2.10.14-setup.exe","6de7f8722a0601e821c6cbfe3fc8b5055fb32d59d2b64fbdbd19f7dcf5a4b8e9"],["WAPT/icon.png","b97cf66ab169d89c69099515054f15242073faa88971060f8b5013c958421964"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["setup.py","299d4af84e1df7d778108c5edc303a7656de4efc51de735319e038325efceafe"],["WAPT/control","ab1f5102abf7225cdf28c486c5c65213fe7e8e25781ce902dc88347e3a88520a"],["Jenkinsfile","d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d"]]