tis-tuxpaint icon

Tux Paint

Paquet d’installation silencieuse pour Tux Paint

0.9.33-3

  • package: tis-tuxpaint
  • name: Tux Paint
  • version: 0.9.33-3
  • categories: Utilities,Media
  • maintainer: WAPT Team,Tranquil IT,Hubert TOUVET,Jimmy PELÉ
  • locale: all
  • target_os: windows
  • impacted_process: tuxpaint
  • architecture: x86
  • signature_date:
  • size: 42.92 Mo
  • installed_size: 30.99 Mo

package           : tis-tuxpaint
version           : 0.9.33-3
architecture      : x86
section           : base
priority          : optional
name              : Tux Paint
categories        : Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Hubert TOUVET,Jimmy PELÉ
description       : Tux Paint is a free drawing program, designed for young children aged 3 to 12 years
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://tuxpaint.org/download/
installed_size    : 30987952
impacted_process  : tuxpaint
description_fr    : Tux Paint est un programme de dessin gratuit, conçu pour les jeunes enfants de 3 à 12 ans
description_pl    : Tux Paint to darmowy program do rysowania, przeznaczony dla małych dzieci w wieku od 3 do 12 lat
description_de    : Tux Paint ist ein kostenloses Zeichenprogramm, das für Kinder im Alter von 3 bis 12 Jahren entwickelt wurde
description_es    : Tux Paint es un programa de dibujo gratuito, diseñado para niños de 3 a 12 años
description_pt    : Tux Paint é um programa de desenho gratuito, concebido para crianças pequenas com idades compreendidas entre os 3 e 12 anos
description_it    : Tux Paint è un programma di disegno gratuito, pensato per i bambini dai 3 ai 12 anni
description_nl    : Tux Paint is een gratis tekenprogramma, ontworpen voor jonge kinderen van 3 tot 12 jaar
description_ru    : Tux Paint - это бесплатная программа для рисования, предназначенная для детей в возрасте от 3 до 12 лет
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 7629d06d-146a-4da5-8933-2fc67943b653
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://tuxpaint.org/latest/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : b2e368daed84c8c05fa822b303aa485857830c8848597319cc5e8eb7d2d1ed35
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : WQpJDKxfNutTlWLYGOqKP9saUigAYhkwxh3z5Ve1RMVLJQQgtjVi0saxGM0Kl4oACUuyN/6GCI7SJymvfHGzODbCXMorpb837s6jAczJB37xiGoLxwGcyGvJd0n4yyIS23SvvViPesK8uTnbxsGGcEcMjAWQF8LosjfvjEzScy2PyuJzUBqTGvpfmbep37NtlpWcSo2LoPUY+bcpU11j3w0+ToYN8Ue70IqnRGsgZTIBEfJjOCwhP171RULxW55hrCNXx3A4tygJnVe1j1skYKAXLYLT175Swlz5qZIxofRamOctjVdHZ3jF/2v+XE18Rn3pSG+5OkjGQ+2kqWlf4A==
signature_date    : 2024-07-25T04:00:10.399467
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

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


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*.exe")[0]

    # Uninstalling older versions of the software
    for to_uninstall in installed_softwares(name=r"\bTux Paint"):
        if Version(to_uninstall["version"]) < Version(package_version) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])
            time.sleep(5)

    # Installing the software
    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT",
        key="Tux Paint_is1",
        min_version=package_version,
    )

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://sourceforge.net/projects/tuxpaint/best_release.json"
    arch_dict = {"x64": "x86_64", "x86": "i686"}

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["platform_releases"]:
        latest_bin = json_load["platform_releases"][download]["filename"].split("/")[-1].replace("x86_64", arch_dict[control.architecture])
        if ".exe" in latest_bin:
            download_url = json_load["platform_releases"][download]["url"].rsplit("/", 1)[0] + "/" + latest_bin
            version = json_load["platform_releases"][download]["filename"].split("/")[-2]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)
    if Version(version_from_file, 4) != Version(version, 4) and version_from_file != "":
        print("Changing version to the version number of the binary")
        # os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

4c3a0f4a711ded26e139bcb546a5b0cb1d05ed2899ac1b94d407d95fd222ce70 : setup.py
9bad00b64894f532abc781145d75f5d0f0ee4d0b81e1543ca452925502af83d5 : update_package.py
b2e368daed84c8c05fa822b303aa485857830c8848597319cc5e8eb7d2d1ed35 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c6b25a6ef1a16393c94a452b2bcec9cfb33275a6268514d20e3bb962a05dba1f : luti.json
87708db832b122a2f7090b300110a77402919a6e45ea387614c4f6fa669dec20 : tuxpaint-0.9.33-windows-i686-installer.exe
c59d8aea0de11689bc34496aac513dbff8fa7260ff235e96a64e7539e013452e : WAPT/control