tis-drawio
14.6.13-2
Draw.io is free diagram software for making flowcharts, process diagrams, org charts, UML, ER and network diagrams.
61894 downloads

Description
- package : tis-drawio
- version : 14.6.13-2
- architecture : x64
- categories :
- maintainer : Simon Fonteneau
- description : Draw.io is free diagram software for making flowcharts, process diagrams, org charts, UML, ER and network diagrams.
- locale :
- target_os : windows
- min_wapt_version :
- sources :
- installed_size :
- impacted_process : draw.io.exe
- description_fr : Draw.io est un logiciel gratuit de création de diagrammes pour la création d’organigrammes, de diagrammes de processus, d’organigrammes, de diagrammes UML, ER et de réseaux.
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : JGraph
- licence : Apache-2.0 license
- signature_date : 2021-08-17T10:49:47.672772
- Homepage : http://www.draw.io
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
package_version = control['version'].split('-')[0]
for soft in installed_softwares('draw.io'):
if Version(soft['version']) > Version(package_version):
run(uninstall_cmd(soft['key']))
if (not [soft for soft in installed_softwares('draw.io') if Version(soft['version']) >= Version(package_version)]) or force:
killalltasks(control.impacted_process)
run('"draw.io-%s-windows-installer.exe" /S' % package_version)
killalltasks(control.impacted_process)
else:
print('Skip - Draw.io %s already install' % package_version)
remove_desktop_shortcut('draw.io')
if not [soft for soft in installed_softwares('draw.io') if Version(soft['version']) >= Version(package_version)]:
error('Draw.io %s not found' % package_version)
uninstallkey.extend([soft['key'] for soft in installed_softwares('draw.io') if Version(soft['version']) >= Version(package_version)])
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/jgraph/drawio-desktop/releases/latest',proxies=proxies))['assets'] if '-installer.exe' in p['name']][0]
if not isfile(binaryfile):
wget(urlfile,binaryfile,proxies=proxies)
for f in glob.glob('*.exe'):
if f != binaryfile:
remove_file(f)
lastversion = get_file_properties(binaryfile)['ProductVersion']
print('Last Version %s' % lastversion)
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = lastversion + '-1'
pe.save_control_to_wapt(os.getcwd())
if __name__ == '__main__':
update_package()