Détails du package
smp-naps2
Revenir à la liste des packages
Version officielle sur le site de l'editeur : 6.1.2
Fichier control :
package : smp-naps2
version : 6.1.2-1
architecture : all
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : Logiciel libre permettant de scanner des documents, les éditer et les convertir vers le format PDF et d'autres extensions.
depends :
conflicts :
maturity :
locale :
target_os : windows
min_os_version :
max_os_version :
min_wapt_version :
sources :
installed_size :
impacted_process : NAPS2.exe
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : d3b07ba9-e291-4605-96e1-38ea0cd7eef3
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : c4VVNq2rn2+5tkO8hrgDxpUYkCo88IbnL7ZxbXoD7Xx8KVyorxx2rdRB/ugDqpEav9kkwzWKXL9/7KueITP30pIA3PtPwZQx2Nua0wfPJUEYp5R3RJYoOVF/TyrTGhUkvjzXnAMFcUq+huK5RzQluDtuFC1TWrzwD/vsU2piGphaWiiJvRg+R1J+osNKMwn9mtu8sQ8V9pomcv2SrZJFSRal90uNvd3PZU02NW4jYl9NL4QmhAslIW37QLPUOS+HdUoSycUF+40xlb3AgiZLjbZD0ODvMz3MgvRVtgZ4fjlRA+5WjJiF5ZIFplMXwiQRNFaMVbtbVKdPrMUxxcW77Q==
signature_date : 2020-07-04T01:20:40.853902
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():
if uninstall_key_exists('NAPS2 (Not Another PDF Scanner 2)_is1'):
run(uninstall_cmd('NAPS2 (Not Another PDF Scanner 2)_is1'))
versionpaquet = control['version'].split('-',1)[0]
install_msi_if_needed('naps2-%s-setup.msi' % versionpaquet,killbefore='NAPS2.exe')
def update_package():
for line in wgets('https://github.com/cyanfish/naps2/releases').splitlines():
if 'naps2/releases/tag/' in line :
lastversion = line[line.find('">') + 2 :line.find('</a>')]
break
for msi in glob.glob('*.msi'):
if Version(get_msi_properties(msi)['ProductVersion']) != Version(lastversion):
remove_file(msi)
if not isfile('naps2-%s-setup.msi' % lastversion):
print('Downloading %s '% ('naps2-%s-setup.msi' % lastversion) )
wget('https://github.com/cyanfish/naps2/releases/download/v%s/naps2-%s-setup.msi' % (lastversion,lastversion),'naps2-%s-setup.msi' % lastversion)
else:
print('Already up to date, skipped')
os.chdir(os.path.dirname(__file__))
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = lastversion + '-0'
pe.save_control_to_wapt(os.getcwd())
if __name__ == '__main__':
update_package()