tis-calibre icon

calibre

Silent install package for calibre

5.44.0-13
Office
Utilities
Media
Office
Utilities
Media

  • package: tis-calibre
  • name: calibre
  • version: 5.44.0-13
  • categories: Office,Utilities,Media
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Kovid Goyal
  • licence: GPLv3
  • locale: all
  • target_os: windows
  • impacted_process: calibre,ebook-viewer,lrfviewer
  • architecture: x86
  • signature_date:
  • size: 119.39 Mo
  • installed_size: 417.74 Mo
  • homepage : https://calibre-ebook.com

package           : tis-calibre
version           : 5.44.0-13
architecture      : x86
section           : base
priority          : optional
name              : calibre
categories        : Office,Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Calibre (stylised calibre) is a cross-platform open-source suite of e-book software
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 417738752
impacted_process  : calibre,ebook-viewer,lrfviewer
description_fr    : calibre est un gestionnaire de bibliothèques numériques permettant la visualisation, la conversion, le catalogage et l'édition de livres numériques
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Kovid Goyal
keywords          : e-book,ebook,book,reader,word,processor,calibre,e-readers,ereaders,epub,azw3,mobi
licence           : GPLv3
homepage          : https://calibre-ebook.com
package_uuid      : 90f0c75b-9056-453c-9b9e-60d25b7ce8b6
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://calibre-ebook.com/whats-new
min_os_version    : 6.2
max_os_version    : 
icon_sha256sum    : 4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Q3vz0nyBh9cIyvYpURUE9sFAP55Hkc7UG9g0BHf1Q/p7QrRPfTNczntgWSE58zB3pfzWNpPxQIPC76cFjqgyOA3q87wz20a9X4CC78whzRVvwH5Rn/RgA9j9Z+TsF9cSyZUpocXiO27zSRbSkOoDuLf6HkyJKGHgdY5ntQlH93/9NkTaklBvPTl/+pBK/3Zh0xrA181SBgz6EZ4qcMiJ1VDbub86+/6UAMr0ZawMGOjpmHn4rIBUGFCPhWYAfznoPQHGj2Gv4Ud0SYKSNJHIiiEJ1wUnbnp+9vxukcEVUOlsDMnnCfdhAAp6Xdzwch8opEerO14vSnFt088egcWZ6g==
signature_date    : 2022-06-22T09:03:55.439581
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

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

"""
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
bin_contains = 'calibre-'


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob('*%s*.msi' % bin_contains)[0]

    # Installing the software
    print("Installing: %s" % bin_name)
    install_msi_if_needed(bin_name,
        min_version=package_version,
    )


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    sub_bin_name = bin_contains + '-%s.exe'
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    git_repo = 'kovidgoyal/calibre'
    api_url = 'https://api.github.com/repos/%s/releases/latest' % git_repo

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    version = json_load['tag_name'].replace('v', '')
    if control.architecture == 'x64':
        latest_bin = 'calibre-64bit-%s.msi' % version
    else:
        latest_bin = 'calibre-%s.msi' % version
    for download in json_load['assets']:
        if latest_bin in download['name']:
            download_url = download['browser_download_url']
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if version != version_from_file and version_from_file != '':
            print("Changing version to the version number of the binary")
            os.rename(latest_bin, sub_bin_name % version_from_file)
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
    #control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result



22f754544dcbdd3c0e5f713ddd897175680231e187ac67a0e5a8d9163634687c : setup.py
4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7d38278f72ea4cdcd603e554531dc159a21ff52484fddb9c596813ea25f79db6 : WAPT/changelog.txt
40315169aa6ebcca0258b944596c0edfd01d0fd81f3e8f1561f699fcc9102692 : luti.json
21903563b5bb5817ee33f3a3ea6b0f3b71c3eac1793069f89674d70a99f0f080 : calibre-5.44.0.msi
644baea810881aa5ff6a4a7d44845030a9f395d920599efa448ea3852099e0b1 : WAPT/control

https://calibre-ebook.com/whats-new
https://calibre-ebook.com/whats-new