tis-xournal

1.2.3-2
Xournal++ is an open source, cross-platform note-taking software that is fast, flexible and functional
819 downloads
Download
See build result See VirusTotal scan
tis-xournal icon
  • package : tis-xournal
  • name : Xournal++
  • version : 1.2.3-2
  • categories :
  • maintainer : Amel FRADJ
  • editor :
  • licence : open source
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-05-22 17:00
  • size : 74.92 Mo
  • homepage : https://xournalpp.github.io/
package           : tis-xournal
version           : 1.2.3-2
architecture      : x64
section           : base
priority          : optional
name              : Xournal++
categories        : 
maintainer        : Amel FRADJ
description       : Xournal++ is an open source, cross-platform note-taking software that is fast, flexible and functional
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
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      : f9fd447f-486d-405a-a4fd-68cd88f8a44c
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         : xo7ayiNkhCC7AZ7qY4D6xkZ4Emq5lXvPyVKPfj64FJSPuHfFXk+pvb3bLRi0VSW6fLuH0iqnEHDoxVIOpB3Kxrwb3VEP/b5FnQYoqHIIkvaIzrxZfBu4K+RmqQ4wpjlelyzYXDa+/ueFrr+ck7ODRayXzd8S6ew+iqeucSiHUSZOFdIf4gKIzJsk/Gooe4i8w3teHfWRtCYThGSIkjY4XspqdCgLyLxhBs5lNGTWsMVPC6V4EEeyd+FBKjdD1DYMHMATk9gd2AGjYmYD4ZUUgwjWUXBFumfAhRjLA22ySstoYpfMmHd6gnOKjZFFygnB/J+I3XSCiuKdlz18xIOcRA==
signature_date    : 2024-05-22T17:00:10.495453
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 subprocess

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# 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('xournalpp-*-windows.exe')[0]
    # Installing the software
    path_to_xournal = makepath(programfiles,"Xournal++","bin","xournalpp.exe")

    if force or not isfile(path_to_xournal) or Version(get_file_properties(path_to_xournal)['ProductVersion']) < control.get_software_version(): 
  
        install_exe_if_needed(bin_name,
            silentflags='/S /allusers',
            min_version= control.get_software_version(),
        )
    else:
        print('Skip Xournal++ already install')

    if not isfile(path_to_xournal) or Version(get_file_properties(path_to_xournal)['ProductVersion']) < control.get_software_version(): 
        error("Xournal++ not install")
    
def uninstall():
    uninstall_exe_path =  makepath(programfiles,'Xournal++','Uninstall.exe')
    
    # Exécutez le programme de désinstallation avec l'option /S pour une désinstallation silencieuse
    subprocess.run([uninstall_exe_path, '/S'], shell=True)

# -*- 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("windows.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
64e43c20ce1c69538adf3548ed828af2959ffa13ee34decf4ca7fb6d25522e35 : setup.py
 : __pycache__
e49c0da26ea2b35b743d51e1624e6d9b2b26e54efaa17ac29125ad02763a7866 : xournalpp-1.2.3-windows.exe
d91ba632f083643915398839f9276de878f225393e236fbafcdba131925c0131 : update_package.py
9b5dc08f12257bc882402d80b81bfa11a67ac526d5d9b3e932dee13e6e5ea52b : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
9fa156b266039a818a3eff30c8c5d41d0e17be31eac7f10fdd708e62dd4f4b74 : luti.json
a5cc3bfb35fdbe48431ed3ef12b055a7cf82be88e1cd1749ea1e524f19a50a6f : WAPT/control