tis-thorium-reader icon

Thorium Reader (EDRLab)

Silent install package for Thorium Reader (EDRLab)

3.2.2-0

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

package           : tis-thorium-reader
version           : 3.2.2-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      : 0572b21c-1ce7-4616-90d0-23494ef71096
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-08-24T13:07:47.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         : SXnchXANvdvWrK6qGB+U66iQXfmdPQdwJmIKL0t3WHC24rJamhKJxBhI69AOVPWY03QQKaGliFd7+ZPdbnxvE6UKw+nc+/odVVCSS1LxZTNKsBOMv4ClnJMGEfytGZNJNJfaSAg9lTMJ4LE3SXXJa8BA/9uXzrSBBls3/3dJ/OUbCR49gN5vOGZ0ECZb8oroZ+iTr+ZR1ZOt89bADBJXjW/zc/VywSRGDmtYvgBll+rijGlIs+HvvT5E7kEE/T9pT27Jdkyi3FOVP597AEPnwcBaygb67/+VxBUybpWsOcJX3c3IThEXdtHBADlEJ6u/hc4u8h+k/VIkfw1JfkWhGA==

# -*- 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
    bin_name = glob.glob('*.exe')[0]
    # Installing the software
    print(f"Installing: {bin_name}")
    install_exe_if_needed(bin_name,
        silentflags='/S /ALLUSERS',
        key='13998dff-ad91-57f4-b530-aa7ad6d4fea5',
        min_version=control.get_software_version()
    )



# -*- 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

3c5ab3579550f2047b109ce27cfce8f3a3261bdf70a4bb86f63b16ee0821660d : Thorium.Setup.3.2.2.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
521394a55844a36d7fa255e46934e71b8aa59ead19f8e614098312dd253b2b51 : WAPT/control
60290da86e2addb42990cf2a86d475a40e723f494b69e7b4633a6a709e22b4c0 : WAPT/icon.png
326f17df84e8c980733af90ef0d2368c514ddc698eac290ac95d28c6985caf93 : luti.json
5eafb7cffea724241d15fe98db9c1c29a95e849c9bb6dcf0767f701fef01ee24 : setup.py
c182686decc745f21c13bff2978dbaeef9375061d0ea5b6e949d2db102cfa9b7 : update_package.py