- package: tis-naps2
- name: NAPS2
- version: 7.5.3-1
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Simon Fonteneau,Pierre COSSON,Clément Baziret
- licence: opensource_free,wapt_public
- locale: all
- target_os: windows
- impacted_process: NAPS2.exe
- architecture: x86
- signature_date:
- size: 12.06 Mo
- installed_size: 7.93 Mo
package : tis-naps2
version : 7.5.3-1
architecture : x86
section : base
priority : optional
name : NAPS2
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Simon Fonteneau,Pierre COSSON,Clément Baziret
description : Free software to scan documents, edit and convert them to PDF and other extensions.
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources :
installed_size : 7929715
impacted_process : NAPS2.exe
description_fr : Logiciel libre permettant de scanner des documents, les éditer et les convertir vers le format PDF et d'autres extensions.
description_pl : Darmowe oprogramowanie do skanowania dokumentów, edycji i konwersji do formatu PDF i innych rozszerzeń
description_de : Kostenlose Software zum Scannen, Bearbeiten und Konvertieren von Dokumenten in PDF und andere Erweiterungen
description_es : Software gratuito para escanear documentos, editarlos y convertirlos a PDF y otras extensiones
description_pt : Software gratuito para digitalizar documentos, editá-los e convertê-los para PDF e outras extensões
description_it : Software gratuito per scansionare documenti, modificarli e convertirli in PDF e altre estensioni
description_nl : Gratis software om documenten te scannen, te bewerken en te converteren naar PDF en andere extensies
description_ru : Бесплатная программа для сканирования документов, их редактирования и преобразования в PDF и другие расширения
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage :
package_uuid : 1b5d251c-8c98-4804-bddf-241c9f75fe77
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : c48c5e64a0ec077ccaf7f3c70ca12299f2056c13e7b3eb6471b2c72cde49b797
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-01-05T00:00:32.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 : tVudN76dhbp1wUp/dVzTkfY6MdK07iLx3DEnWWk99Ojw8kHfPGgu+KZFE8Crop2cpln1TVfKidgM7f28XBci+xvLGmQvigP+HJyrHftgdK5Ht9imaG2E6rFQDptoJuigf03qb1Ykx1GAjgLTNRWoth4bgiyM4jgDd64SmPYiS8lHqRUX3+ZGSF7YO6pCW9LIpm4kbLVdjMqGczPEO1UtSDpYkrdkhk8cbqez8hga++XkrQtHfU3t+oB1eh1Rg1zjD8paB3kPbJGE4S0qFqkF5gfo7wL803c+VylikfZ0LsDIBvuIwjLcySq+GIb4q76n3hE+L3O9Uo7azcAIcfnLQw==
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
install_msi_if_needed(
glob.glob("naps2-*.msi")[0],
killbefore="NAPS2.exe",
remove_old_version=True,
)
# -*- coding: utf-8 -*-
from setuphelpers import *
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
api_url = "https://api.github.com/repos/cyanfish/naps2/releases/latest"
download_dict = {
"windows-x64": "-win-x64.msi",
"windows-x86": "-win-x86.msi",
}
# Getting latest version information from official sources
print("API used is: %s" % api_url)
json_load = wgets(api_url, proxies=proxies, as_json=True)
version = json_load["tag_name"].replace("v", "").replace(".windows", "")
for to_download in json_load["assets"]:
if download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
download_url = to_download["browser_download_url"]
latest_bin = to_download["name"]
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 outdated binaries
remove_outdated_binaries(latest_bin)
# Checking version from file
if get_os_name() == "Windows" and "windows" in control.target_os.lower():
version_from_file = get_version_from_binary(latest_bin)
if Version(version_from_file, 4) == Version(version, 4):
print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
else:
error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")
# Changing version of the package
if Version(version, 4) > Version(control.get_software_version(), 4):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Validating update-package-sources
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
68fc3c7e39c4e8b0bee62506652a13c2969c58bf99a6faaa1064b99881addb45 : WAPT/control
c48c5e64a0ec077ccaf7f3c70ca12299f2056c13e7b3eb6471b2c72cde49b797 : WAPT/icon.png
a0127490447044cda11ec8176c9a20189f1e0651a302fa00b2340fff20a805db : luti.json
fab7edc926b48dd75aed1b067ec84838657c520ad0485fd1d42f64348a40a04b : naps2-7.5.3-win-x86.msi
04c5c9ac3405a581b9b7507bbfe393c9e848cafb3b065621864539894f9b9b1f : setup.py
ccf2a8d323e72848fc126353bafc6898d376ba08f19c1bbdbbf032b282e13b77 : update_package.py