tis-nomacs icon

nomacs

Silent install package for nomacs

3.19.1-1

  • package: tis-nomacs
  • name: nomacs
  • version: 3.19.1-1
  • maintainer: Amel FRADJ
  • licence: GPL-3.0 license
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 43.90 Mo
  • homepage : https://nomacs.org/

package           : tis-nomacs
version           : 3.19.1-1
architecture      : x64
section           : base
priority          : optional
name              : nomacs
categories        : 
maintainer        : Amel FRADJ
description       : nomacs is a free image viewer
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/nomacs/nomacs/releases/
installed_size    : 
impacted_process  : 
description_fr    : nomacs est une visionneuse d'images gratuite
description_pl    : nomacs to darmowa przeglądarka obrazów
description_de    : nomacs ist ein kostenloser Bildbetrachter
description_es    : nomacs es un visor de imágenes gratuito
description_pt    : O nomacs é um visualizador de imagens gratuito
description_it    : nomacs è un visualizzatore di immagini gratuito
description_nl    : nomacs is een gratis afbeeldingsviewer
description_ru    : nomacs - бесплатная программа для просмотра изображений
audit_schedule    : 
editor            : 
keywords          : 
licence           : GPL-3.0 license
homepage          : https://nomacs.org/
package_uuid      : 2b939d76-3790-4b4e-a303-9d73bb3747d7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6d0e98dc8e344784d1380e9d435744eb0320f64838e89564b883f3a1a2251330
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Jx5R5CYToxW/DUfU2MIRWRNdks9JhxdM7iCAmxsy/YYVQMOL1sY98E7CIr91zPtSIk4lRAV62Q56ivAydJYV/b6C7Tw4yRXbw6fHBd2vcoK4R2xf9x1xnucuvie3BgXbHHaCTG8RGsSiznGUofN3Q9dR1yKA0IKqr8436Ud93fF17Qy/fagHHj0PoP3IbX7DI6eN02yUq552IcdJrnThXg/kBG2iZxAgJcoPaUGHYX6F9+UAdnNw4WPyu6xnKoFU1uscKsXkgy5dbtSrwOx8hKj83z3E3BSIC4M+oX61s+VfsUehF1zbeA+PO3OkRZJZq2SzYHNPxkgJ8QqI+tgrWA==
signature_date    : 2024-09-04T13:01:49.509844
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()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():

    # Installing the software
    install_msi_if_needed('nomacs-setup-x64.msi')



# -*- 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()
     
    git_repo = "nomacs/nomacs"
    url_api = "https://api.github.com/repos/%s/releases" % git_repo   
    # Getting latest version information from official sources
    print(f"API used is: {url_api}")
    json_load = json.loads(wgets(url_api, proxies=proxies))

    # Initialize variables to store the latest version information
    latest_version = None
    url_dl = None
    filename = None

    # Vérifier que json_load est une liste
    if isinstance(json_load, list):
        # Itérer à travers chaque release
        for release in json_load:
            # Vérifier que la release contient une clé "assets" et que c'est une liste
            if "assets" in release and isinstance(release["assets"], list):
                for download in release["assets"]:
                    # Vérifier si l'URL de téléchargement se termine par .msi
                    if download["browser_download_url"].endswith(".msi"):
                        # Compare versions to find the latest one
                        current_version = release["tag_name"]
                        if latest_version is None or current_version > latest_version:
                            latest_version = current_version
                            url_dl = download["browser_download_url"]
                            filename = download["name"]
                        break  # Once we found a valid .msi in the assets, no need to check further in the same release

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

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

fd485e2f23dc490773de383d073df040a9a382659f84b2135b945278467c0e5f : setup.py
8fbae5a6b99dc29cbfb53c3f2ef06eb01c3cc938cba54488587544fbc55c0a82 : update_package.py
6d0e98dc8e344784d1380e9d435744eb0320f64838e89564b883f3a1a2251330 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
55869dc9290d521a3c452868e957034b01c4a1724cc17670280229f2ba1b6490 : luti.json
e00e40d9c3546523427e5e695f7120b440b0ef8165ab4b7a78e2c2dc543f6450 : nomacs-setup-x64.msi
7fb58d2062fa210722cedda102b9c98d3734d5e79aba9b8b1f6832b1bde912ee : WAPT/control