tis-xnview-classic icon

XnView Classic

Silent install package for XnView Classic

2.52.0-10

  • package: tis-xnview-classic
  • name: XnView Classic
  • version: 2.52.0-10
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • locale: all
  • target_os: windows
  • impacted_process: nconvert,xnview
  • architecture: all
  • signature_date:
  • size: 19.41 Mo
  • installed_size: 60.29 Mo
  • conflicts :

package           : tis-xnview-classic
version           : 2.52.0-10
architecture      : all
section           : base
priority          : optional
name              : XnView Classic
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : XnView Classic is a Photo Viewer, Image Resizer & Batch Converter for Windows
depends           : 
conflicts         : tis-xnview
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://www.xnview.com/en/xnview/#downloads
installed_size    : 60289510
impacted_process  : nconvert,xnview
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : fdb0a63d-608f-464b-bf92-bc37c554121c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : c26f33277917b2c1e0ecf9853be3157a7cccc87faf9aa55db784c0529bfec2e0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-11-30T11:00:12.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         : M/jR2ySA4UDSVs9C9+cGTGt4EDwo3HI00MNSheselxiLkb4ZlFz1UVcC4FuHlO82T9WSuU13EHbO/zUq2Mc1jHi0OTyFAaBysZ7f3E480lJ+3sm7n/1Os5M9m5Gg5vO8cIMsYQiaAC58wQmU9gMMhBnEppP4aJDkEGgvbA+cwK1R3pAdfXnjLGVkb3AgyKF/8DSbn32Zo2j82gW11srvCQvls9Ik396+ROmWbel/jVtQZWZxOm4ZhyoYTL3mPhuuKu0hShFhFbfQmzQxhqra++1OHLqXH5zCEBYJWASlKu6y4bxY5C7X8iYq1vaF39IfXKKWCr1pnb03vmPdPs+QlQ==

# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    install_exe_if_needed(
        "XnView-win-full.exe",
        silentflags="/VERYSILENT /SUPPRESSMSGBOXES /NORESTART",
        key="XnView_is1",
        min_version=control.get_software_version(),
    )

# -*- coding: utf-8 -*-
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    download_url = "https://download.xnview.com/XnView-win-full.exe"
    latest_bin = download_url.split("/")[-1]

    # Deleting binaries
    for f in glob.glob("*.exe") + glob.glob("*.msi"):
        print("Removing: %s" % f)
        remove_file(f)

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

    # Changing version of the package
    version = get_version_from_binary(latest_bin)
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
f88242dd649567d0d76ce23bd4818a47b234de553f0f0c02846456f7fc2d6a21 : WAPT/control
c26f33277917b2c1e0ecf9853be3157a7cccc87faf9aa55db784c0529bfec2e0 : WAPT/icon.png
8dea8343de8d7e2178e94f1c92b058bf04e5adfc6201c48416f09fa05a3f7b31 : XnView-win-full.exe
47b29e91747b85b8cea58febc4636e5d0a917355ad8586670534093b79ec2005 : luti.json
0740fa4110805a2ea5b5ed2d19e20e93869d11d5a1ed09fec2cb4636c8ac06c7 : setup.py
122e043f1b184388934e9a602f616bb4767c7c76d97488b0208d64d79e022fc4 : update_package.py