
mypaint
Silent install package for mypaint
2.0.1-1
- package: tis-mypaint
- name: mypaint
- version: 2.0.1-1
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: Licence GPL-2.0
- target_os: windows
- architecture: x64
- signature_date:
- size: 38.77 Mo
- homepage : https://mypaint.app/
package : tis-mypaint
version : 2.0.1-1
architecture : x64
section : base
priority : optional
name : mypaint
categories :
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : MyPaint is a simple drawing and painting program that works well with Wacom-style graphics tablets
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : MyPaint est un programme de dessin et de peinture simple qui fonctionne bien avec les tablettes graphiques de type Wacom
description_pl : MyPaint to prosty program do rysowania i malowania, który dobrze współpracuje z tabletami graficznymi typu Wacom
description_de : MyPaint ist ein einfaches Zeichen- und Malprogramm, das gut mit Wacom-Grafiktabletts funktioniert
description_es : MyPaint es un sencillo programa de dibujo y pintura que funciona bien con las tabletas gráficas Wacom
description_pt : O MyPaint é um programa simples de desenho e pintura que funciona bem com tablets gráficos do tipo Wacom
description_it : MyPaint è un semplice programma di disegno e pittura che funziona bene con le tavolette grafiche di tipo Wacom
description_nl : MyPaint is een eenvoudig teken- en schilderprogramma dat goed werkt met grafische tabletten in Wacom-stijl
description_ru : MyPaint - это простая программа для рисования и раскрашивания, которая хорошо работает с графическими планшетами типа Wacom
audit_schedule :
editor :
keywords :
licence : Licence GPL-2.0
homepage : https://mypaint.app/
package_uuid : 00360d56-1b4d-44d2-a681-aedebad09e36
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum :
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : hzMKPhLC93xTs+u/ocBEFog3j5u+N55r/aQOMG+Of+gUrt3d3tgVhI2BjZXBo/60wEQetOyGWoCTOZ2lXPiqxw1mhLpQKzUzGIcalsjFDKIM5F1Ko2kHVrCNsDlSbstitdHn9Hxo1hA6pNY51xEAF8WEe4w5K5KRNcopaZOnCTHT/PKdhrPa/3cfXuelcOgnnEQ5eeO24gVE0BaY3MCeyX60F5E2HHX7j7Ocp6LkMo87XWPKFIjVKDFf1EesNnAJPYyRSCDZ65oQ0oyDUfL/BshpvsR6LlnlhYLQFv+neSVz7zVdXtWMNSv1SZoIOeMPfNYCTBiMTMT1e5s5Vcyb0w==
signature_date : 2024-08-28T10:07:37.207614
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 *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"key":"mypaint-w64",
"name":"MyPaint",
"version":"2.0.1.g478280f2-1",
"install_date":"",
"install_location":"\"C:\\Program Files\\mypaint-w64\"",
"uninstall_string":"\"C:\\Program Files\\mypaint-w64\\uninstall.exe\"",
"publisher":"Martin Renold and the MyPaint Development Team",
"system_component":0,
"win64":true
}
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
bin_name = glob.glob('mypaint-*-installer.exe')[0]
# Installing the software
install_exe_if_needed(bin_name,
silentflags='/S',
key='mypaint-w64',
min_version=control.get_software_version(),
get_version=get_version,
timeout=600,
)
def get_version(app_registry_dict):
# Sépare la chaîne par les points et autres délimiteurs
version_full = app_registry_dict["version"]
# On split par '.' puis on rejoint les trois premiers segments avec '.'
version_parts = version_full.split('.')
version = '.'.join(version_parts[:3])
return version
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def update_package():
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
dict_arch = {
"x64":"mypaint-w64-",
"x86":"mypaint-w32"
}
git_repo = "mypaint/mypaint"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith('.exe') and dict_arch[control.architecture] in download["browser_download_url"]:
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v","")
filename = download["name"]
break
if not isfile(filename):
package_updated = True
wget(url_dl,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.exe'):
if f != filename:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
d05bf4346033ca5003f6667d8548ca86bc4d539a50d80fdaeda35f0147dd2908 : setup.py
7ddc65ff664da6f22649290617e699ea9df5293a04ba8136795bbeaf97a1315d : icon.png
a1911283e7240c23704a96a74d20ae306528b2d5267054313ff400992733f4a3 : update_package.py
7d1d94822e9cde8418cae0a0b78aed72f080a03633fe76eed20a71025debb23d : mypaint-w64-2.0.1-installer.exe
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b1107b0b3c150d73af6adec458c6544225e9fae85f90348ffc0dd6b2a0a870a8 : luti.json
320cd54c5f42f1833d0877a35160fd14aeb84f3300011becac95100f0edd2a91 : WAPT/control