tis-naps2

6.1.2-2
Free software to scan documents, edit and convert them to PDF and other extensions.
1261 downloads
Download

  Description 

  • package : tis-naps2
  • version : 6.1.2-2
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description : Free software to scan documents, edit and convert them to PDF and other extensions.
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • 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 :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:36:59.463329

  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():

    import json
    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    binaryfile,urlfile  = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/cyanfish/naps2/releases/latest',proxies=proxies))['assets'] if '-setup.msi' in p['name']][0]


    for msi in glob.glob('*.msi'):
        if msi != binaryfile:
            remove_file(msi)

    if not isfile(binaryfile):
        print('Downloading %s '% (binaryfile))
        wget(urlfile,binaryfile,proxies=proxies)
    else:
        print('Already up to date, skipped')


    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = get_msi_properties(binaryfile)['ProductVersion'] + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()

										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","7fcdebc39e98a96eed54a99ab5797d18d48fa23520c3e4b25a296cb45a9c92c9"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","252b70e9f3a4939df417f84432ee839ac8069089be2041c45a7348db28fc2ea0"],["naps2-6.1.2-setup.msi","a3ae684694fedbbc557208320df571eabe5b4099a4d26c0ac00aaf6ebab09238"],["WAPT/control","146277598cd3f5e93c2f046ff9dbc3b551933a594f167ef4810e3ad1b51230a1"],["setup.py","f9b2defebccef3ec30ac9b398982e314e9b10374f26f9ea5c7c2f71655da330e"],["README.md","b4fbb8d3e41db323d768df9bf85aded10dfd10a5f4aa4ddf4118388a38750b2b"],["Jenkinsfile","023e2bdc94cd8e66d6dac9da416de955471e24dc1a41be416d0ee5979dbec5f2"]]