tis-pencil-portable icon

pencil2d

Silent install package for pencil2d

0.7.1-1

  • package: tis-pencil-portable
  • name: pencil2d
  • version: 0.7.1-1
  • maintainer: Administrator,Jordan ARNAUD
  • target_os: darwin
  • architecture: x64
  • signature_date:
  • size: 46.40 Mo

package           : tis-pencil-portable
version           : 0.7.1-1
architecture      : x64
section           : base
priority          : optional
name              : pencil2d
categories        : 
maintainer        : Administrator,Jordan ARNAUD
description       : HMI modeling tool (static and/or dynamic)
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Outil de maquettage IHM (statique et/ou dynamique)
description_pl    : Narzędzie do modelowania HMI (statyczne i/lub dynamiczne)
description_de    : HMI-Mapping-Tool (statisch und/oder dynamisch)
description_es    : Herramienta de modelización HMI (estática y/o dinámica)
description_pt    : Ferramenta de modelação HMI (estática e/ou dinâmica)
description_it    : Strumento di modellazione HMI (statico e/o dinamico)
description_nl    : HMI-modelleringstool (statisch en/of dynamisch)
description_ru    : Инструмент моделирования HMI (статический и/или динамический)
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 4b0533b1-3130-4a9f-858f-b3be5566632c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ccd9a5c5d95a8a56173028da4992105dc8bbf081f7bfd72f9671a1fbd66e5098
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-03-14T10:48:50.000000
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
signature         : skIOYGaarXZfZmcql+eXsM3T+3wPOuQaLaKYPd5T1h2TVUKi84li+REogdCiw0ER5gA1fcMUobXj6ho2GfWItaqjYxSMAM6/SNpHvF9ROanZNW43sUEg/m/mGTyLaRPVhy0+ks84ajRmrg2GoHZaF8jSJXGSnYnM3cWtDOKa86/I0vGNd+uzNa1kZHkFEz0Cyy+38ZHMjpqqpevYFsiA2fJovFHK7rgcF0Lj53mwKYnJhMePJ3XtpJ1jONklbuo+aHHH0eOLt6A7pmJhFe86eUyH/F3YLvA/SVReV8AUN444nLCZClS4DULFl4tjHqPSAFeen7qkrNhkLAE9bXAwTg==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *

def install():
    install_dmg(glob.glob("pencil2d-mac-*.dmg")[0])

def uninstall():
    remove_tree("/Applications/Pencil2D.app")

# -*- 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":"pencil2d-mac",
        "x86":"-win32"}    
        
    git_repo = "pencil2d/pencil"
    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('.dmg'):
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        print(filename)
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.zip'):
        if f != filename:
            remove_file(f)
   
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
ea6a27bd99099afde9f925eb755c369ccf430b7ff7d74d3c3c8929e9ce5fac3a : WAPT/control
ccd9a5c5d95a8a56173028da4992105dc8bbf081f7bfd72f9671a1fbd66e5098 : WAPT/icon.png
859aec128d3c1b5f6361a6b3aaf94bcf9f92aeef3d6d936ce84d96fe6bc0e296 : luti.json
a4bb4472c0cdc2a15e396dd057d81ede401e25698caf5b580adda39e278c162f : pencil2d-mac-v0.7.1.dmg
c81632d9bae44c05a6385570444216f4b7bc2a9ab496ed6d7a852dd73b0d71a0 : setup.py
42fba87e96f5b852d2dad0b4bf55621cd3920e282e28ae737e3cb3affa3ab3a2 : update_package.py