tis-librecad

2.1.3-10
LibreCAD is a free computer-assisted design software. It allows two-dimensional drawing such as technical drawings, construction documentation, or instructions for use.
687 downloads
Download
tis-librecad icon

  Description 

  • package : tis-librecad
  • version : 2.1.3-10
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description : LibreCAD is a free computer-assisted design software. It allows two-dimensional drawing such as technical drawings, construction documentation, or instructions for use.
  • locale :
  • target_os : windows
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process : LibreCAD.exe
  • description_fr : LibreCAD est un logiciel libre de dessin assisté par ordinateur. Il permet le dessin en deux dimensions comme des plans techniques, des documentations de construction, ou encore des modes d'emploi.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-12-22T09:16:23.670375

  Setup.py 

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

uninstallkey = []

def install():
    print('installing librecad')
    soft_version = control['version'].split('-')[0]
    install_exe_if_needed('LibreCAD-Installer-%s.exe' % soft_version,silentflags='/S',min_version=soft_version,key='LibreCAD',killbefore=['LibreCAD.exe'])
    remove_desktop_shortcut('LibreCAD')

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
    binaryfile,urlfile  = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/LibreCAD/LibreCAD/releases/latest',proxies=proxies))['assets'] if '.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 = binaryfile.split('-')[2].split('.exe')[0]
    print('Last Version %s' % lastversion)

    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = lastversion + '-10'
    pe.save_control_to_wapt(os.getcwd())

if __name__ == '__main__':
    update_package()

										

  Changelog 



No changelog.txt.
									
  manifest.sha256