tis-ghostscript

9.52-1
Ghostscript for Windows
3858 downloads
Download

  Description 

  • package : tis-ghostscript
  • version : 9.52-1
  • architecture : x86
  • categories :
  • maintainer : Simon Fonteneau
  • description : Ghostscript for Windows
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5.1.20
  • sources :
  • installed_size : 40398848
  • impacted_process : inkscape.exe
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-03-19T18:55:41.259000

  Setup.py 

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *
import time

uninstallkey=[]

def install():
    softname = 'GPL Ghostscript'
    versionsoft = control['version'].split('-',1)[0]
    versfile = versionsoft.replace('.','')

    old_ghostscript = installed_softwares(softname)
    if old_ghostscript:
        for uninstall in old_ghostscript:
            if Version(uninstall['version']) < Version(versionsoft):
              cmd = WAPT.uninstall_cmd(uninstall['key'])
              run(cmd)

    install_exe_if_needed('gs%sw32.exe' %versfile,silentflags='/S',key='GPL Ghostscript %s' % versionsoft ,min_version=versionsoft,killbefore=['inkscape.exe'])




def update_package():
    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}

    import json
    file32,realurl  = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases/latest',proxies=proxies))['assets'] if 'w32.exe' in p['name']][0]
    realversion = json.loads(wgets('https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases/latest',proxies=proxies))['name'].split(' ')[-1]

    if not isfile(file32):
        wget(realurl,file32,proxies=proxies)

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != file32 :
            remove_file(fn)

    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = realversion +'-0'
    pe.save_control_to_wapt(os.getcwd())

    print('The update is complete, you can now test and then launch a build upload.')


if __name__ == '__main__':
    update_package()
										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","e7516439d558f987562ba721207484cd46062ca5ebab55228d0ed441c1c5021d"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","252b70e9f3a4939df417f84432ee839ac8069089be2041c45a7348db28fc2ea0"],["gs952w32.exe","7f5f93e57edaa8c3d09047ea0819aea97170d85cd08166bec014a8864b0aefd6"],["setup.py","fbfbbb28fa9d2a02a32ea8e48400b8628d774dff44d4aa4ac33f48f6eef45ea9"],["WAPT/control","171b775648e1129efe8ae673eedfd94567133765ac8aa33b4b4ad4763d394134"]]