tis-krita

4.4.1.100-1
Krita est un logiciel de traitement d'image point à point. Il s'adresse au professionnel du graphisme, de l'illustration de la bande dessinée et de la création de texture.
3189 downloads
Download

  Description 

  • package : tis-krita
  • version : 4.4.1.100-1
  • architecture : x86
  • categories :
  • maintainer : Simon Fonteneau
  • description : Krita est un logiciel de traitement d'image point à point. Il s'adresse au professionnel du graphisme, de l'illustration de la bande dessinée et de la création de texture.
  • locale :
  • target_os : windows
  • min_wapt_version : 1.5.1.20
  • sources :
  • installed_size : 207630336
  • impacted_process : krita.exe
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-11-03T10:24:55.449815

  Setup.py 

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

uninstallkey = []

def install():

    exes = glob.glob('*.exe')
    version = control['version'].split('-',1)[0]

    shortversion = version.rsplit('.',1)[0]
    fileinstall = "krita-x86-%s-setup.exe" % version
    if not isfile(fileinstall):
        fileinstall = "krita-x86-%s-setup.exe" % shortversion

    install_exe_if_needed(fileinstall,silentflags='/S',min_version=version,key='Krita_x86',killbefore=['krita.exe'])

    remove_desktop_shortcut('Krita')



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}

    """I retrieve the current file from the official site >>>"""

    page = wgets('https://krita.org/en/download/krita-desktop/',proxies=proxies)
    shortversion = page.split('download.kde.org/stable/krita/')[1].split('/')[0]
    setupx86 = 'kritakrita-x86-%s-setup.exe' % shortversion
    linkx86 = 'https://download.kde.org/stable/krita/%s/krita-x86-%s-setup.exe' % (shortversion,shortversion)


    """Deleting old files"""

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != setupx86:
            remove_file(fn)

    """I download the file if it does not exist >>>"""

    if not isfile(setupx86):
        wget(linkx86,setupx86,proxies=proxies)

    """I write the version in the control file >>>"""
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = get_file_properties(setupx86)['ProductVersion'] + '-0'
    pe.save_control_to_wapt(os.getcwd())

    print('The update is complete, you can now test and then launch a build upload.')

if __name__ == '__main__':
    update_package()


										

  Changelog 



No changelog.txt.
									
  manifest.sha256