tis-krita
4.3.0.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.
6834 downloads

Description
- package : tis-krita
- version : 4.3.0.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 :
- target_os : windows
- 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 : 2020-06-19T10:42:35.590000
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()