tis-thorium-reader icon

Thorium Reader (EDRLab)

Silent install package for Thorium Reader (EDRLab)

3.1.0-0

  • package: tis-thorium-reader
  • name: Thorium Reader (EDRLab)
  • version: 3.1.0-0
  • maintainer: Bertrand Lemoigne, WAPT Team
  • licence: cpe:/a:bsd:bsd_license
  • target_os: windows
  • impacted_process: Thorium
  • architecture: x64
  • signature_date:
  • size: 107.32 Mo
  • installed_size: 357.40 Mo

package           : tis-thorium-reader
version           : 3.1.0-0
architecture      : x64
section           : base
priority          : optional
name              : Thorium Reader (EDRLab)
categories        : 
maintainer        : Bertrand Lemoigne, WAPT Team
description       : Read, Select, Annotate, Classify. Perfect for heavy readers, library-goers, and students alike!
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://thorium.edrlab.org/en/
installed_size    : 357404672
impacted_process  : Thorium
description_fr    : Lire, Sélectionner, Annoter, Classer. Parfait pour les grands lecteurs, les bibliophiles et les étudiants !
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : read,select,annotate,classify
licence           : cpe:/a:bsd:bsd_license
homepage          : 
package_uuid      : d08eb8a7-275d-411d-a850-42afa6ce3bb0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 60290da86e2addb42990cf2a86d475a40e723f494b69e7b4633a6a709e22b4c0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-22T12:37:44.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         : XLDC95DkbOTg3p0dqtq4tXewrmttAp7bZ5bOOzM3QM8Vq7D3TKUSjP8CYUcf7K7P9ixaqGZa1Y2nGMgSxkM5jM1Rk+BvFxhR7sqzfF5yk1q/KcpyM4rwSvc0WJXmrlJPrcJie08Dia+84I4leZNtXh5fF+LgjxvyH65r5FctuLnDUL1Mq6WgnbULZPSJ0KOYKwEOLfAGGssn/UhpHUc5aThiccq/EsNcWud5ovhSWRhtc02wbPiruOKlGDQx2I0AvlV8kIc8cb2sqDdvMuIm06njo2ZgDTZvS0aaR/bULMfbPfIKoqUoMAQEBs3H2MeGM0liS4ExhGHrySppNYzqiA==

# -*- 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():
    # Declaring local variables

    # Installing the software
    print("Installing: Thorium.Setup.3.1.0.exe")
    install_exe_if_needed('Thorium.Setup.3.1.0.exe',
        silentflags='/S /ALLUSERS',
        key='13998dff-ad91-57f4-b530-aa7ad6d4fea5',
        min_version='3.1.0'
    )



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

def update_package():
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    source_html = wgets('https://thorium.edrlab.org/en',proxies=proxies).splitlines()
    for line in source_html:
        if 'https://github.com/edrlab/thorium-reader/releases/download' in line:
            version = line.split('/')[-2].replace('v','')
            break
    latest_bin = f'Thorium.Setup.{version}.exe'
    download_url = f'https://github.com/edrlab/thorium-reader/releases/download/v{version}/Thorium.Setup.{version}.exe'

    # 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, "ProductVersion")
    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

8db0829aaab2b24df2b2cfcd833a84cfe3db0de87177a9f5669ee896aabe2db2 : Thorium.Setup.3.1.0.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
089fa8a51fb804521aa417cd59ad0cbba5563e3c01302d6b717753032c7c3636 : WAPT/control
60290da86e2addb42990cf2a86d475a40e723f494b69e7b4633a6a709e22b4c0 : WAPT/icon.png
1c687428c7b73a2503910fc7a468a1efdd0ce0d0cd6852ba8674bca0b320ae96 : luti.json
682aed1fadd9369273701939b044894ef32251fa683fbf99f60a038f193d9bf5 : setup.py
c182686decc745f21c13bff2978dbaeef9375061d0ea5b6e949d2db102cfa9b7 : update_package.py