tis-autodesk-dwg-trueview

24.2.72.0-0
View DWG files or convert them to work with older versions of AutoCAD software
4937 downloads
Download
See build result See VirusTotal scan
tis-autodesk-dwg-trueview icon
  • package : tis-autodesk-dwg-trueview
  • name : DWG TrueView
  • version : 24.2.72.0-0
  • categories : Utilities,Media
  • maintainer : WAPT Team,Tranquil IT,Gaëtan SEGAT
  • editor : Autodesk
  • licence :
  • locale :
  • target_os : windows
  • impacted_process : dwgviewr
  • architecture : x64
  • signature_date : 2022-07-06 19:11
  • size : 1.08 Go
  • installed_size : 5.37 Go
  • homepage : https://www.autodesk.fr/viewers
package           : tis-autodesk-dwg-trueview
version           : 24.2.72.0-0
architecture      : x64
section           : base
priority          : optional
name              : DWG TrueView
categories        : Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Gaëtan SEGAT
description       : View DWG files or convert them to work with older versions of AutoCAD software
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.autodesk.fr/viewers
installed_size    : 5368709120
impacted_process  : dwgviewr
description_fr    : Affichez les fichiers DWG ou convertissez-les pour travailler avec les anciennes versions du logiciel AutoCAD
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Autodesk
keywords          : 3D,AutoCAD,Revit,Fusion 360,3ds Max,BIM 360,Civil 3D
licence           : 
homepage          : https://www.autodesk.fr/viewers
package_uuid      : eec3dd8b-79b7-46ed-b54f-2bf8e6f79305
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : ed6088fcc162008d7c4e086bce6e355dca66e709154bfa38079ef5a3c7b4409f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : k77t4LO1XSTgqsnvhHphd3sCQPvARaaKFfNh5k+1WyyUo6jFco68CeeKXW0AkUi8CSP8WEcfad2xL/DUmCOY9z2G8b6ykIlwhYRs0RM+2pri8sJVwxMNWh6VOyq3mYrlRo4N15FMTY8yOJDF7ZyhL4GKLqiPhwInCUNfQBl2nSaClsMKoHaucM3PxFQOyxWmAqllJqzv2FwNzb8bcBHe0rBtbozGnM3WuJqQERm3xMsfXMjRcGQun7KWqh6z6jGVZOP+n0ad4LUojJ2Rzlw/K/p4XGWqk3z/TTr56IOCQhIkAS+q8ysF3TYQlWlj1JQHKrVlpWT7jtWPlwfsX+Pn3w==
signature_date    : 2022-07-06T19:11:37.033977
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 *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "DWGTrueView_"
silentflags = "-q"
app_uninstallkey = "{9F180917-4277-3998-AFDB-C9477508D3AE}"
install_path = makepath(programfiles, "Autodesk")
silent_uninstall_cmd = (
    '"C:\\Program Files\\Autodesk\\AdODIS\\V1\\Installer.exe" -i uninstall -q -m C:\\ProgramData\\Autodesk\\ODIS\\metadata\\%s\\bundleManifest.xml'
    % app_uninstallkey
)


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]
    extract_path = makepath(basedir, "extract")

    # Skip if already installed
    if need_install(app_uninstallkey):

        # Extract the software
        run('%s -suppresslaunch -d "%s"' % (bin_name, extract_path))

        # Get setup installer path
        extract_path_version = glob.glob(r"%s\*" % extract_path)[0]
        bin_name_install = glob.glob(r"%s\*.exe" % extract_path_version)[0]

        # Installing the software
        print("Installing: %s (%s)" % (control.name, package_version))
        install_exe_if_needed(
            bin_name_install,
            silentflags=silentflags,
            key=app_uninstallkey,
            min_version=package_version,
            timeout=2700,
        )
    else:
        # Making sure uninstallkey is known
        uninstallkey.append(app_uninstallkey)

    # Add a silent uninstall command to the registry
    register_uninstall(app_uninstallkey, quiet_uninstall_string=silent_uninstall_cmd)

    # Delete extract files
    if isdir(extract_path):
        remove_tree(extract_path)
# -*- coding: utf-8 -*-
from setuphelpers import *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "DWGTrueView_"

def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = "https://www.autodesk.fr/viewers"
    if control.architecture == "x64":
        arch = "64bit"
    else:
        arch = "32bit"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "class", "cmp-button", proxies=proxies, timeout=10):
        if bin_contains in bs_search["href"] and arch in bs_search["href"]:
            version = bs_search["href"].split("_")[1]
            latest_bin = bs_search["href"].split("/")[-1].split("?")[0]
            download_url = bs_search["href"]
            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)
    
    # Get version from binary
    extract_temp_path = r"%s\%s" % (basedir, version)
    run('%s -suppresslaunch -d "%s"' % (latest_bin, extract_temp_path))
    extract_autodesk = glob.glob(extract_temp_path)[0]
    bin_version = glob.glob(r"%s\*\x64\dwgviewr\*.msi" % extract_autodesk)[0]
    version_from_file = get_version_from_binary(bin_version)
    remove_tree(extract_temp_path)

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

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result
3b44d9b0c9b8a058f4a15eaca29a99aa5543054ac01d3a290ecdb4d6eab635ab : setup.py
222e82e0b0fff5bb20c91eea8f376df051538d8a8ce4e2c840a5224b15688561 : update_package.py
ed6088fcc162008d7c4e086bce6e355dca66e709154bfa38079ef5a3c7b4409f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7cf2c92a98410e43a8d6cb867d0d149e759e03ed22581f44e48c9adbbbc16e6c : WAPT/changelog.txt
fbb738195d306cb776a2ff719d99f80b9a25383560443652aeb1d9b3e274232b : luti.json
1c54998314bd13d75faf5c352266f1034b6d458162532451bf393b380f3d93a9 : DWGTrueView_2023_French_64bit_dlm.sfx.exe
669646d0458679d5609e9f2786fb52939c62f1b00a396455c538152a9e6a2808 : WAPT/control
24.1.154.0
===
Improve code
Add update package
24.2.72.0
===
Update version
Add icon