tis-krita

4.4.2.0-1
Krita is a point-to-point image processing software. It is aimed at the professional graphic design, illustration of comics and texture creation.
2831 downloads
Download

  Description 

  • package : tis-krita
  • version : 4.4.2.0-1
  • architecture : x64
  • categories :
  • maintainer : Simon Fonteneau
  • description : Krita is a point-to-point image processing software. It is aimed at the professional graphic design, illustration of comics and texture creation.
  • locale : all
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5.1.20
  • sources :
  • installed_size : 332312576
  • impacted_process : krita.exe
  • description_fr : 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.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-02-18T16:50:42.115777

  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-x64-%s-setup.exe" % version
    if not isfile(fileinstall):
        fileinstall = "krita-x64-%s-setup.exe" % shortversion

    install_exe_if_needed(fileinstall,silentflags='/S',min_version=version,key='Krita_x64',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}

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

    """Deleting old files"""

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

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

    if not isfile(setupx64):
        wget(linkx64,setupx64,proxies=proxies)

    """I write the version in the control file >>>"""
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = get_file_properties(setupx64)['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
  manifest.sha256 
[["krita-x64-4.4.2-setup.exe","17d5a6f7881e01e8e89ec138fb3bb088dad45acaf7df21cc0a2fdbd04d74206b"],["setup.py","0512ad69ff5db6cae55b2085a4b333918185f5ada8ca2225ec1cc8ab681c5491"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","8fa194c647e36336c76b8d45b42f249d1fc6628b9cbf7ba5790d96640849d449"],["WAPT/wapt.psproj","4b493e7ccdc13099222b1bfa24901e86e8060cfb39378820895a7f0f5bf6f689"],["WAPT/control","2e36d8d036ab1e4992682e8ef2d3cfd4525e05334e180993090bfdb75e5615ff"]]