tis-krita

5.0.0-2
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
Download
View on luti logo
tis-krita icon

  Description 

  • package : tis-krita
  • version : 5.0.0-2
  • architecture : x64
  • categories : Utilities, Media
  • maintainer : WAPT Team,Tranquil IT,Simon Fonteneau,Jimmy PELÉ,Gaëtan SEGAT
  • 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_wapt_version : 1.7
  • sources : https://krita.org/download/krita-desktop/
  • installed_size : 510611456
  • impacted_process : krita
  • 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 : Foundation Krita,KDE
  • licence : GNU General Public License 3
  • signature_date : 2021-12-28T14:00:29.604035
  • Homepage : https://krita.org

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name_string = 'krita-x64-%s-setup.exe'
app_name = 'Krita'
silent_args = '/S'
app_uninstallkey = 'Krita_x64'

def install():
    # Initializing variables
    package_version = control.version.split('-')[0]
    processes_to_kill = control.impacted_process.split(',')
    bin_name = bin_name_string % package_version

    # Installing the package
    print('Installing: %s' % bin_name)
    install_exe_if_needed(bin_name,
        silentflags=silent_args,
        key=app_uninstallkey,
        min_version=package_version)
    remove_desktop_shortcut(app_name)


"""def uninstall():
    remove_allusers_desktop_shortcut(app_name)"""


def session_setup():
    bin_shortcut = makepath(programfiles, 'Krita (x64)','bin','krita.exe')
    #create_user_desktop_shortcut(app_name, bin_shortcut) 


def update_package():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = 'https://krita.org/en/download/krita-desktop/'
    bin_end = bin_name_string.split('%s')[-1]
    #bin_start = bin_name_string.split('%s')[0]

    # Getting latest version from official sources
    print('URL used is: %s' % url)
    for bs_search in bs_find_all(url, 'a', 'id', 'sixty-four-bit-windows-installer', proxies=proxies):
        if bs_search['href'].split('/')[-1].endswith(bin_end):
            version = bs_search['href'].split('/')[-2]
            latest_bin = bs_search['href'].split('/')[-1]
            url_dl = bs_search['href']
            break


    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: %s' % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)

        # Changing version of the package
        control.version = '%s-%s' % (version, int(control.version.split('-')[-1])+1)
        control.save_control_to_wapt()
        print("Changing package version to: %s in WAPT\\control" % control.version)

    # Deleting outdated binaries
    remove_outdated_binaries(version)


										

  Changelog 



Changelog software url : https://krita.org/en/item/krita-4-4-2-released/



No changelog.txt.
									
  manifest.sha256