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: macos
  • impacted_process: Thorium
  • architecture: arm
  • signature_date:
  • size: 123.05 Mo
  • installed_size: 123.31 Mo

package           : tis-thorium-reader
version           : 3.1.0-0
architecture      : arm
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         : macos
min_wapt_version  : 
sources           : https://thorium.edrlab.org/en/
installed_size    : 123305984
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      : b8fc0c80-3899-4239-b54e-9ae85045d91d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 60290da86e2addb42990cf2a86d475a40e723f494b69e7b4633a6a709e22b4c0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-03T17:13:20.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         : TRAnWszCacm1lb+li6fK8hvvUmLji6UjLNUDTLNMr/bIPCz0sG2W2RqOuFcKp5HPoEdWomk+PDa+N8t9qbCPeNN0Fd/Mz6tC/y2m75Wg1UOO5ssE18hIeHB7fuaHP/m8vsJ6xD+JAzLiEpXqPi5s54Rsy/J7FCOP9xWrtFB3UUD/0f0sZiS9WZQ0zeQXjF7Pku2i3NmyI4Y7dxn5ttMpR9qYP4rS9a5Inm5mbmQf+Og1zFWfTS5MokqHaOdb3RQBlIipRVimo0mkGF6XTzpp3cOhyHJBl0k5+sJFprr53jnKri+Od5Z9q09PEKW/KgqvGo4OXYAZTN0DAoVgTK3+Sw==

# -*- 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('*.dmg')[0]
    # Installing the software
    print(f"Installing: {bin_name}")
    install_dmg(bin_name)

def uninstall():
    remove_tree('/Applications/Thorium.app')


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

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    #they do not always release versions for all platforms
    url = 'https://thorium.edrlab.org/en'

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", proxies=proxies):
        if 'arm64.dmg' in bs_search['href']:
            download_url = bs_search["href"]
            latest_bin = download_url.split("/")[-1]
            version = latest_bin.split("-")[1]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    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)

    # Deleting binaries
    for f in glob.glob("*.dmg"):
        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

    print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
    package_updated = True
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

f2785f6ac4dd11659ccaf38f453485f4d3449cfaf79ee17c6409ea45d41a43fc : Thorium-3.1.0-1-arm64.dmg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
9efc4df4b8ca04dd80ff05206d4d0abdc578ef4af1dd60a1f85abb8767119745 : WAPT/control
60290da86e2addb42990cf2a86d475a40e723f494b69e7b4633a6a709e22b4c0 : WAPT/icon.png
728f657f60102eaf9ba16e53115220050cc02a64294c3c17f9f8fb421def1a87 : luti.json
ca54985b7f613a01193b2435e6f78e8b66c4a33139b475a5c705e423f1211ef1 : setup.py
252144e4f03cc77b8f4b072e903f8b249bfb752314a01112f2a472fbc4d0f019 : update_package.py