tis-sketchup-make

17.2.2555-14
SketchUp is a 3D modeling computer program for a wide range of drawing applications such as architectural,
5069 downloads
Download
default icon

  Description 

  • package : tis-sketchup-make
  • version : 17.2.2555-14
  • architecture : x64
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN
  • description : SketchUp is a 3D modeling computer program for a wide range of drawing applications such as architectural,
  • locale : fr
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://www.sketchup.com/sketchup/2017/fr/sketchupmake-2017-2-2555-90783-fr-x64-exe
  • installed_size : 651902720
  • impacted_process : SketchUp,Style Builder,LayOut
  • description_fr : SketchUp est un logiciel de modélisation 3D, d'animation et de cartographie orienté vers l'architecture.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Trimble
  • licence : Freeware or Commercial
  • signature_date : 2020-11-25T18:06:54.303353
  • Homepage : https://www.sketchup.com/

  Setup.py 

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

uninstallkey = []
bin_name_pack = 'sketchupmake-2017-2-2555-90783-fr-x64.exe'
bin_name = 'SketchUp2017-x64.msi'


def install():
    print('installing Sketchup')
    install_msi_if_needed(bin_name)


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    # download binary
    dl_url = 'https://www.sketchup.com/sketchup/2017/fr/sketchupmake-2017-2-2555-90783-fr-x64-exe'
    if not isfile(bin_name):
        if not isfile (bin_name_pack):
            print("downloading binary")
            wget(dl_url,bin_name_pack,proxies=proxies)           
        else :
            print('last version binary, skip download')

    if isfile (bin_name):
        print('extract already done, skip')
        remove_file(bin_name_pack)
    else :
        print('extracting msi')
        unzip_with_7zip(bin_name_pack,filenames=[bin_name])
        remove_file(bin_name_pack)
    
    # Changing version of the package
    version = get_msi_properties(bin_name)['ProductVersion']
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing package version to: %s in WAPT\\control' % control.version)


def unzip_with_7zip(filename, filenames=[], target=None, recursive=True, extract_with_full_paths=True):
    if not isinstance(filenames, list):
        filenames = [filenames]
    sevenzip_path = makepath(programfiles, '7-Zip', '7z.exe')
    if not filenames:
        if extract_with_full_paths:
            run(r'"%s" x "%s" %s %s -aoa' % (sevenzip_path, filename, '' if not target else '-o"%s"' % target, '' if not recursive else '-r'))
        else:
            run(r'"%s" e "%s" %s %s -aoa' % (sevenzip_path, filename, '' if not target else '-o"%s"' % target, '' if not recursive else '-r'))
    else:
        for extract in filenames:
            if extract_with_full_paths:
                run(r'"%s" x "%s" %s "%s" %s -aoa' % (sevenzip_path, filename, '' if not target else '-o"%s"' % target, extract, '' if not recursive else '-r'))
            else:
                run(r'"%s" e "%s" %s "%s" %s -aoa' % (sevenzip_path, filename, '' if not target else '-o"%s"' % target, extract, '' if not recursive else '-r'))


def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()


def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies





										

  Changelog 



Changelog software url : https://help.sketchup.com/en/sketchup/older-release-notes



No changelog.txt.
									
  manifest.sha256