tis-xournal

1.2.3-2
Xournal++ est un logiciel de prise de notes open source et multiplateforme rapide, flexible et fonctionnel
819 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-xournal icon
  • package : tis-xournal
  • name : Xournal++
  • version : 1.2.3-2
  • categories :
  • maintainer : Jordan ARNAUD
  • editor :
  • licence : open source
  • locale :
  • target_os : darwin
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-08-13 15:01
  • size : 25.25 Mo
  • homepage : https://xournalpp.github.io/
package           : tis-xournal
version           : 1.2.3-2
architecture      : x64
section           : base
priority          : optional
name              : Xournal++
categories        : 
maintainer        : Jordan ARNAUD
description       : Xournal++ is an open source, cross-platform note-taking software that is fast, flexible and functional
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 
sources           : https://github.com/xournalpp/xournalpp
installed_size    : 
impacted_process  : 
description_fr    : Xournal++ est un logiciel de prise de notes open source et multiplateforme rapide, flexible et fonctionnel
description_pl    : Xournal++ to otwarte, wieloplatformowe oprogramowanie do tworzenia notatek, które jest szybkie, elastyczne i funkcjonalne
description_de    : Xournal++ ist eine schnelle, flexible und funktionale Open-Source- und plattformübergreifende Notiz-Software
description_es    : Xournal++ es un software de código abierto y multiplataforma para tomar notas, rápido, flexible y funcional
description_pt    : O Xournal++ é um software de anotações de fonte aberta e multiplataforma que é rápido, flexível e funcional
description_it    : Xournal++ è un software open source multipiattaforma per prendere appunti, veloce, flessibile e funzionale
description_nl    : Xournal++ is een open source, cross-platform notitiesoftware die snel, flexibel en functioneel is
description_ru    : Xournal++ - это кроссплатформенное программное обеспечение для ведения заметок с открытым исходным кодом, быстрое, гибкое и функциональное
audit_schedule    : 
editor            : 
keywords          : 
licence           : open source
homepage          : https://xournalpp.github.io/
package_uuid      : abccf1ea-95a4-4199-baf6-9d2e6d63654b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/xournalpp/xournalpp/blob/master/CHANGELOG.md
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 9b5dc08f12257bc882402d80b81bfa11a67ac526d5d9b3e932dee13e6e5ea52b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Wk7ruUix7LKqibjXz0/gotLjMisiMWHdcBO3A2itPEjGlYVG03FkscpCwQXJrOajx01nmn4Yyu849mjUm+UULHEF/evSh1yiZG2z4P74yrrdXtIg96n54vy05kIJY9Zh2/S3fkcyKXD+s1gkZ6SnbhGCl0+nlDEw2SS+kTwy15Pr8nMjIN+Iyf5z4/N3CM+sempef/P6q8gZLph6CfiUGe+0YSprfv7N499SbHiv9G7qXlfBB8kYIT0SCkfOKOAcCalZnzJbm2EJbKFKmqj5lKcwvL1pw7JbYlp5+lOxKY2eeWfMFJrq0x4s+81V7tV0PbVt6yPXl6Af0PREMWWmwQ==
signature_date    : 2024-08-13T15:01:37.057483
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 -*-
##################################################
# 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():
    ver = control.version.split("-")[0]
    bin_name = f"xournalpp-{ver}-macos.zip"

    run("mkdir /tmp/xournal")
    run(f"unzip {bin_name} -d /tmp/xournal")
    run("mv /tmp/xournal/Xournal++.app /Applications")
    remove_tree("/tmp/xournal")

def uninstall():
    remove_tree("/Applications/Xournal++.app")
    
# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    api_url = "https://api.github.com/repos/xournalpp/xournalpp/releases/latest"

     # Get data from API
    releases_dict = wgets(api_url, proxies=proxies, as_json=True)
    zip_found = False  # Flag pour indiquer la découverte d'un fichier .zip
    #target_extension = control.target_os + ".zip"
    for release in releases_dict:
        if zip_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith("macos.zip"):
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split('/')[-1]
                last_version = releases_dict["name"][10:]
                zip_found = True  # Mettre à jour le flag pour indiquer qu'un .zip a été trouvé
                break


   
    # Deleting binaries
    for f in glob.glob("*.zip"):
        if f != latest_bin:
            remove_file(f)


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

    # setup_file = unzip(latest_bin,("."))
    # extracted_file_path = setup_file[0] 
    # remove_file(latest_bin)
           
    # if extracted_file_path != latest_bin:
    #     for existing_file in glob.glob("*.exe"):
    #         if existing_file != os.path.basename(extracted_file_path):  # Comparaison avec le nom de fichier seulement
    #             remove_file(existing_file)
    
    # Updating the package
    control.set_software_version(last_version)
    control.save_control_to_wapt()

    return package_updated
bcb7920e857d131477e7ec3e1da5f8669b7485d807682941410858745b5b3ac4 : setup.py
 : __pycache__
1983a91b3b2d79c65a8105b09b58ecb24958a21663d52051f5c040099378501f : update_package.py
9b5dc08f12257bc882402d80b81bfa11a67ac526d5d9b3e932dee13e6e5ea52b : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
5611cf84b8e08f5bafabafea135dbf45d2d286fcf6eb47a18ff0498267f048a0 : luti.json
3fdd861352c1663c43d7a4cd30f0c2297f9d593acac23d311ecd63ec9a7cd231 : xournalpp-1.2.3-macos.zip
54e65d66f42cd47f18b7f0a8e859e622f7636dd651b2617d15b341108b5775f3 : WAPT/control