tis-inkscape
0.92.4-2
Inkscape is a free vector drawing software under the GNU GPL license
7410 downloads

Description
- package : tis-inkscape
- version : 0.92.4-2
- architecture : x64
- 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 : 482668544
- 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-02-27T21:33:29.777122
- Homepage : https://inkscape.org/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
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-x64.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
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}
try:
import BeautifulSoup
except:
import bs4 as BeautifulSoup
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/'
url64 = url + "inkscape-%s-x64.msi" % version
print(url64)
filenamex64 = "inkscape-%s-x64.msi" % version
for fileexe in glob.glob('inkscape-*-x64.msi'):
if fileexe != filenamex64 :
print('Delete ' + fileexe)
remove_file(fileexe)
if not isfile(filenamex64):
print('Download ' + url64)
wget(url64,filenamex64,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())
[["WAPT/icon.png","2a37afab9fce3cc5e914d24e656c8371be9588cd27acf42f07b192adea6d24e9"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","6fa65e0c47b3d167d60186c8153c7f37ccb44696216fd4e067cbe3d5836f49bb"],["setup.py","75de8db022e69f7892496b30eb715af718d1f6a5c103c470bee4f033821d5445"],["WAPT/control","e9ee97c92003e365ae797270a1c337cb1346584e98106169aacc8ff20e4643ae"],["inkscape-0.92.4-x64.msi","f790e292fb6231d44fd6f6b1a6e54f95612a84ff6ee58c8aa7315c71ba7db830"]]