Détails du package
smp-pdfcreator
Revenir à la liste des packages
Version officielle sur le site de l'editeur : 4.4.1
Fichier control :
package : smp-pdfcreator
version : 3.2.0-3
architecture : all
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : PDFCreator converts every printable document to PDF and many other formats. Create professional PDFs with a few clicks.
depends :
conflicts :
maturity :
locale :
target_os : windows
min_os_version :
max_os_version :
min_wapt_version :
sources :
installed_size : 51322880
impacted_process : PDFCreator.exe
description_fr : PDFCreator convertit tous les documents imprimables en PDF et de nombreux autres formats. Créez des fichiers PDF professionnels en quelques clics.
description_pl : PDFCreator konwertuje każdy drukowany dokument na format PDF i wiele innych formatów. Twórz profesjonalne pliki PDF za pomocą kilku kliknięć.
description_de : PDFCreator konvertiert jedes druckbare Dokument in PDF und viele andere Formate. Erstellen Sie professionelle PDFs mit wenigen Klicks.
description_es : PDFCreator convierte todos los documentos imprimibles a PDF y muchos otros formatos. Crea archivos PDF profesionales con unos pocos clics.
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 67fd9b74-b37f-409b-9510-69c470366e44
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : Xtp3Fs8UtTuhtVH/qCtxdsXphRj3jOOPbGoj2YuWPJc3jLHevCW0Mx3cSB0gD/BUaDj6hcqSeUrJ6FU1qDdymZw7XrUr9nZL9VN3thrYm6wA2Hw/C8HQZqy5vJU+1A4J+U5pS982J+hBttTfvdCNbqjTOCLOn5sI24c0k8zsaySsg/NC+v1z5SYJeLQ52YFxURQPy9aC5k9g3bl9ohl3kNrUbPO7hiIpQL2hOBpYgkTwB4zp19FMi+lqoBdDNSKBuBCzSHQH1X8RVm35rsvEZ554OSJ2gMjyNoVWqFQ95fkZI7aYBi85lgr5RXLb9H8jQo1eVv5bY+YmJTN3g3k31Q==
signature_date : 2020-07-04T02:24:06.242000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes
Fichier setup.py :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
versionsoft = control['version'].split('-',1)[0]
versionfile = versionsoft.replace('.','_')
oldpdf = installed_softwares('pdfcreator')
for prog in oldpdf:
if Version(prog['version']) != Version(versionsoft):
print('Removing PDFCreator %s' %prog['version'])
run('"%s" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES' % prog['uninstall_string'])
#Avoid a reboot
registry_delete(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce','PDFCreatorRestart')
print('installing smp-pdfcreator')
install_exe_if_needed('PDFCreator-%s-Setup.exe' % versionfile,silentflags='/VERYSILENT /LOADINF="install.ini"',key='{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}',min_version=versionsoft,killbefore=['PDFCreator.exe'])
def update_package():
#http://download.pdfforge.org/download/pdfcreator/PDFCreator-stable?download
import re,requests,glob
url = requests.head('http://download.pdfforge.org/download/pdfcreator/PDFCreator-stable?download',proxies={}).headers['Location']
fileexe = url.rsplit('/',1)[1]
# je liste tous les fichier exe dans le package et si la version ne correspond pas je supprime le fichier
allexe = glob.glob('*.exe')
for exe in allexe:
if exe != fileexe :
remove_file(exe)
# Je telecharge pdfcreator
if not isfile(fileexe) :
wget(url,fileexe)
realversion = get_file_properties(fileexe)['FileVersion']
#j'inscrit la nouvelle version dans le fichier control
control.version = realversion + '-0'
control.save_control_to_wapt()