tis-thorium-reader icon

Thorium Reader (EDRLab)

Silent install package for Thorium Reader (EDRLab)

3.2.1-0

  • package: tis-thorium-reader
  • name: Thorium Reader (EDRLab)
  • version: 3.2.1-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.1-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      : e328e2a5-909a-4f79-bc24-8b51b5d5954c
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-16T08:01:39.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         : tByqfmwPQRernE8t1b9ZzDaS0bqeNDeBxTdOJQegru8ZSm1/fFfkHT+R/LB1zn2PlHuLV+8TpqQV5DYN4FAwLEC81002EJola63CR16w6jVGDqim1ml9ZYK9IQHpae1C9goliCQT+1RiCg91VknHZkBPd6OAqDrKsHxCKPoC6sEYTJlkC4ha0wuluHao8Raa+iRbYFumiKK+OkizUyfETtOooik1G3lOBlsex8QuXIqo9hwjUglOggtA71QoQ8UleSaheLhO/g7DvUddTA+Pl9D1na2p0YiiZTLTBYbIzg4owNE84M6YsliDlcbKRtuw2Z/I7uZmUPWW0KjQLkQUOA==

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

84fda3c9a04610150dfe219ae3820a3aa84a1b5540b2e28fdfd425666e2edf6c : Thorium.Setup.3.2.1.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8146932e8203632ab9ac1c28601b936ef659a4a59d8e19020152a264b94c67b0 : WAPT/control
60290da86e2addb42990cf2a86d475a40e723f494b69e7b4633a6a709e22b4c0 : WAPT/icon.png
c6ed2cd0cb8afb4cfb561af4c810cfba107e870ac37372ed02727457d424333c : luti.json
5eafb7cffea724241d15fe98db9c1c29a95e849c9bb6dcf0767f701fef01ee24 : setup.py
c182686decc745f21c13bff2978dbaeef9375061d0ea5b6e949d2db102cfa9b7 : update_package.py