calibre
Paquet d’installation silencieuse pour calibre
5.26.0-0
Office
Utilities
Media
Office
Utilities
Media
- package: tis-calibre
- name: calibre
- version: 5.26.0-0
- categories: Office,Utilities,Media
- maintainer: Tranquil IT,Kevin Guerineau,Jimmy PELÉ
- editor: Kovid Goyal
- licence: GPLv3
- locale: all
- target_os: windows
- impacted_process: ebook-viewer.exe, calibre.exe, calibre-parallel.exe, lrfviewer.exe
- architecture: x86
- signature_date:
- size: 114.86 Mo
- installed_size: 417.74 Mo
- homepage : https://calibre-ebook.com
package : tis-calibre
version : 5.26.0-0
architecture : x86
section : base
priority : optional
name : calibre
categories : Office,Utilities,Media
maintainer : Tranquil IT,Kevin Guerineau,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 : 1.5
sources :
installed_size : 417738752
impacted_process : ebook-viewer.exe, calibre.exe, calibre-parallel.exe, lrfviewer.exe
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 dans les principaux formats disponibles.
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 : 28fb97b6-2d73-4be0-a48a-b71aa8798cdb
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 6.0
max_os_version :
icon_sha256sum : 4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : lsjFG3f7KGEQ/WttEV0xinVABZvkc303Pwf5412rOxx1SU32oLzJzfwHS0ne1OXdMBQqe/GZyN+DIBXIfqpFeL4YBuG6gHK57znOowOUqG739Jecvm8Y8FBS8F451Zjc3rkGVMhooHYBV5AflT9WNxEWpn9qz9bRaDZYddcI1n5WGhyCtH9p4Z/GhVvRwKApGz/zqacKgey5eC+J/dmBLY4QwyOkw8DQH/oauRhwmzv3J/J5IK9aRM68829IukDIc0Ip9Ix8+F6D00sbBBJYH0UEJaJLfknblhu/aQEVXaQF8eGF54nV6isPyWHdbcTZA0NQd602GqYNJflYXDxFNA==
signature_date : 2021-08-31T17:14:50.613624
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
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_string = 'calibre-%s.msi'
url_dl = 'https://calibre-ebook.com/dist/win32'
def install():
print('installing %s' % control.asrequirement())
# Specific app values
#package_version = control.get_software_version() # Do not use for now
package_version = control.version.split('-',1)[0]
impacted_process = control.impacted_process
# Getting the used storage on programfiles before installation (place it on the top)
get_disk_free_space_before = get_disk_free_space(programfiles)
for soft in installed_softwares("calibre"):
run_notfatal(uninstall_cmd(soft['key']))
install_msi_if_needed(bin_name_string % package_version
,min_version=package_version)
# Return used storage of the installation. (place it on the bottom)
get_disk_free_space_after = get_disk_free_space(programfiles)
free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
print ("Storage used: " + str(free_space_after_diff))
def update_package():
print('Update package content from upstream binary sources')
import requests,re
from waptpackage import PackageEntry
# Update transition from BeautifulSoup 3 to 4
try:
import BeautifulSoup
except:
import bs4 as BeautifulSoup
# Specific app values
app_name = control.name
url_gh = 'https://github.com/kovidgoyal/calibre/releases'
# Initializing variables
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
# Get latest version number from official website
page = requests.get(url_gh + '/latest',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},proxies=proxies).text
bs = BeautifulSoup.BeautifulSoup(page)
# bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
bs_raw_string = str(bs.find('span',{'class':'css-truncate-target'}).text)
vversion = bs_raw_string
version = vversion.replace('v','')
print('Latest ' + app_name + ' version is: ' + version)
latest_bin = bin_name_string % version
# Downloading latest binaires
if not isfile(latest_bin):
print('Downloading ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxies)
# Change version of the package
print ('Writing ' + version + '-0 in WAPT\\control')
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = version + '-0'
pe.save_control_to_wapt(os.getcwd())
print ('Update package done. You can now build-upload your package')
else:
print ('This package is already up-to-date')
# Deleting outdated binaries
for actual_bin in glob.glob('*.exe') or glob.glob('*.msi'):
if actual_bin != latest_bin :
print('Outdated binary: ' + actual_bin + ' Deleted')
remove_file(actual_bin)
def get_proxies_from_wapt_console():
proxies = {}
if platform.system() == 'Windows':
waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
else:
waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
if isfile(waptconsole_ini_path):
proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
if proxy_wapt:
proxies = {'http': proxy_wapt, 'https': proxy_wapt}
return proxies
if __name__ == '__main__':
update_package()
5c73022b22134d79153911ee040417b38e880409899434bb189dd52699ada28d : calibre-5.26.0.msi
cff23ef919814c7691d7eeb84537afbd96483c88b48f1a2428bf7541c57458fb : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7d38278f72ea4cdcd603e554531dc159a21ff52484fddb9c596813ea25f79db6 : WAPT/changelog.txt
4152db2fde14eb9f3015e05bfe41ddf78ce34b91a57b2e41b38f022033df4e86 : WAPT/icon.png
510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8 : WAPT/wapt.psproj
3034ea11d674259aa37f8230f280ab9db3f1e4179e40ec6eb14350aaacaaa10a : WAPT/control
https://calibre-ebook.com/whats-new