tis-inkscape

0.92.5-1
Inkscape is a free vector drawing software under the GNU GPL license
5628 downloads
Download

  Description 

  • package : tis-inkscape
  • version : 0.92.5-1
  • architecture : x86
  • categories : Utilities
  • maintainer : Simon Fonteneau
  • description : Inkscape is a free vector drawing software under the GNU GPL license
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size : 481206272
  • impacted_process :
  • description_fr : Inkscape est un logiciel libre de dessin vectoriel sous licence GNU GPL
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Bryce Harrington
  • licence : GPLv2
  • signature_date : 2020-04-14T18:53:08.048000
  • Homepage : https://inkscape.org/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []



def install():
    print('installing tis-inkscape')
    diskfreespacebefore = get_disk_free_space(programfiles)

    version = control['version'].split('-',1)[0]

    for uninstall in installed_softwares('inkscape'):
        if not 'MsiExec.exe' in uninstall_cmd(uninstall['key']) :
            run(uninstall_cmd(uninstall['key']))

    for uninstall in installed_softwares('inkscape'):
        if Version(uninstall['version']) < Version(getproductprops('inkscape-%s-x64.msi' % version)['version']) :
            run(uninstall_cmd(uninstall['key']))


    install_exe_if_needed("inkscape-%s.msi" % version,'/quiet',key='',min_version=version)

    diskfreespaceafter = get_disk_free_space(programfiles)


    difffreespace = diskfreespacebefore - diskfreespaceafter
    print (ur"Espace disque occupé :" + str(difffreespace))

    # Kill at end of installation
    killalltasks('inkscape.exe')


def uninstall():
    print('uninstall tis-inkscape')
    for soft in installed_softwares('Inkscape'):
        run(uninstall_cmd(soft['key']))




def update_package():
    import requests,re
    from waptpackage import PackageEntry
    import requests
    from requests.adapters import HTTPAdapter
    from requests.packages.urllib3.util.retry import Retry
    from urllib2 import urlopen
    try:
        import BeautifulSoup
    except:
        import bs4 as BeautifulSoup

    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}

    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    current_version = pe['version'].split('-',1)[0]
    verify=True

    urlversion = 'https://inkscape.org'

    page = requests.get(urlversion,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},verify=verify,proxies=proxies).text
    bs = BeautifulSoup.BeautifulSoup(page)

    bs_raw_string = str(bs.findAll('span')[0]).split(':',1)[1]
    bs_raw_string = bs_raw_string.split('<',1)[0]
    version = bs_raw_string.replace(' ','')

    print(version)

    url = 'https://media.inkscape.org/dl/resources/file/'
    url32 = url + "inkscape-%s-x86.msi" % version
    print(url32)

    filenamex32 = "inkscape-%s.msi" % version

    for fileexe in glob.glob('inkscape-*.msi'):
        if fileexe != filenamex32 :
            print('Delete ' + fileexe)
            remove_file(fileexe)

    if not isfile(filenamex32):
        print('Download ' + url32)
        wget(url32,filenamex32,proxies=proxies)


    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

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

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","2a37afab9fce3cc5e914d24e656c8371be9588cd27acf42f07b192adea6d24e9"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","6fa65e0c47b3d167d60186c8153c7f37ccb44696216fd4e067cbe3d5836f49bb"],["setup.py","39fc7899790229f3095d30456b5bf32156ba9ad22045fb6823b864c5e6a27ce1"],["inkscape-0.92.5.msi","316a6ba14f813922fcae941470c233bbaaa5f7be90db20329958a286a606d0d6"],["WAPT/control","fea992de5342cd142e5468841cd20f9b5d4d09b2fb5a90cc83d0ea91a61b8756"]]