tis-librecad icon

LibreCAD

Paquet d’installation silencieuse pour LibreCAD

2.2.0.2-11

  • package: tis-librecad
  • name: LibreCAD
  • version: 2.2.0.2-11
  • categories: Utilities,Media
  • maintainer: WAPT Team,Tranquil IT,Simon Fonteneau,Gaëtan SEGAT
  • editor: LibreCAD
  • licence: GPLv2
  • locale: all
  • target_os: mac
  • impacted_process: LibreCAD
  • architecture: all
  • signature_date:
  • size: 29.09 Mo
  • installed_size: 149.20 Mo
  • homepage : https://librecad.org

package           : tis-librecad
version           : 2.2.0.2-11
architecture      : all
section           : base
priority          : optional
name              : LibreCAD
categories        : Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Simon Fonteneau,Gaëtan SEGAT
description       : LibreCAD is a free computer-assisted design software. It allows two-dimensional drawing such as technical drawings, construction documentation, or instructions for use.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : mac
min_wapt_version  : 2.3
sources           : https://librecad.org/#download
installed_size    : 149204992
impacted_process  : LibreCAD
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    : LibreCAD to darmowy program do komputerowego wspomagania projektowania. Umożliwia on dwuwymiarowe rysowanie, takie jak rysunki techniczne, dokumentacja budowlana czy instrukcje obsługi
description_de    : LibreCAD ist eine kostenlose Software für computergestütztes Zeichnen. Sie ermöglicht zweidimensionales Zeichnen wie technische Zeichnungen, Konstruktionsunterlagen oder Gebrauchsanweisungen
description_es    : LibreCAD es un software gratuito de diseño asistido por ordenador. Permite realizar dibujos bidimensionales, como dibujos técnicos, documentación de construcción o instrucciones de uso
description_pt    : O LibreCAD é um software de desenho assistido por computador gratuito. Permite o desenho bidimensional tal como desenhos técnicos, documentação de construção, ou instruções de utilização
description_it    : LibreCAD è un software gratuito di progettazione assistita da computer. Consente di realizzare disegni bidimensionali come disegni tecnici, documentazione di costruzione o istruzioni per l’uso
description_nl    : LibreCAD is een gratis computerondersteunde ontwerpsoftware. Er kunnen tweedimensionale tekeningen mee worden gemaakt, zoals technische tekeningen, constructiedocumentatie of gebruiksaanwijzingen
description_ru    : LibreCAD - это бесплатное программное обеспечение для компьютерного проектирования. Она позволяет выполнять двухмерные чертежи, такие как технические чертежи, строительная документация или инструкции по эксплуатации
audit_schedule    : 
editor            : LibreCAD
keywords          : 
licence           : GPLv2
homepage          : https://librecad.org
package_uuid      : 689f5968-454f-4f06-a86d-a2872008fc4c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : dd9fbdd1f420a7b8601800a9573bbb73a2803aec623ae75458babe4d42518d9d
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : YRQaJB7g5/RYx4VkTh/ldBQuwr9PHB25dTW75hHc9qAwidvXHpp1oAFYvXmaV9tnMtpIs6l+LCRO2lV7TkZ5DE6Wz4eOXiziCRKhaSRq6pBvMUvc17NsurUgxmSebAGKEtRWtJ949Mg4Oq8VNLqWKWS9kNc0/I36K8XSqKm6ooAg4ofsyoZQtbEX7REfI8I4mWiyovhBaZ4vy+VzrrHEyW5vB09gXYYozZ8pvTOoE+bCEiLRYCd25dIEt4Lig/HSqZOu1mSB48RwDWY9Nzs/nW85muxBpDQF7IG8TvnEEpr/xXp/M8x7fOZDXCygDQwazk3j+kMdJlBM/Ms54ImguA==
signature_date    : 2023-09-12T12:00:12.923528
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

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


def install():
    bin_name = glob.glob("LibreCAD-*.dmg")[0]
    install_dmg(bin_name, min_version=control.get_software_version())


def uninstall():
    uninstall_app("LibreCAD")

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


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    bin_contains = "LibreCAD"
    bin_end = ".dmg"

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/LibreCAD/LibreCAD/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if bin_contains in download["name"] and bin_end in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    version_dmg = version.replace(".", "-")
    remove_outated_dmg = glob.glob("LibreCAD_*.dmg")

    for dmg in remove_outated_dmg:
        if not version_dmg in dmg:
            remove_file(dmg)

    # Validating update-package-sources
    return result

ffb999ff0dd9e96ec7eb6bf76c6eb521f55e14aaa7c63b3bc540152938af66de : setup.py
03b341d45899816fe449c1e43c3159922b55c33a62524165a5e3bb6d62bf21ba : update_package.py
dd9fbdd1f420a7b8601800a9573bbb73a2803aec623ae75458babe4d42518d9d : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c0cc2db42dee96cce029c104ed143646ceb8c0e5b099654ed05f994657212ae4 : WAPT/changelog.txt
be0a12c5c32d1e4e5e8dd8d0d064ba7400b63de4ccdd747d0c9790305bb42fdc : luti.json
552e2ac63fca297c617511c3983be7477bc050e8f774841abb7db5ce81ce935b : LibreCAD-2.2.0.2.dmg
c0c51e5286b1698a86f0d2d4250573296e17abbcfebebae0d1c528bb937984f1 : WAPT/control

2.1.3
===
first commit