tis-sketchup-make

17.2.2555-14
SketchUp is a 3D modeling computer program for a wide range of drawing applications such as architectural,
3303 downloads
Download See VirusTotal scan
default icon
  • package : tis-sketchup-make
  • name : SketchUp Make 2017
  • version : 17.2.2555-14
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN
  • editor : Trimble
  • licence : Freeware or Commercial
  • locale : fr
  • target_os : windows
  • impacted_process : SketchUp,Style Builder,LayOut
  • architecture : x64
  • signature_date : 2020-11-25 18:06
  • size : 151.92 Mo
  • installed_size : 651.90 Mo
  • homepage : https://www.sketchup.com/
package           : tis-sketchup-make
version           : 17.2.2555-14
architecture      : x64
section           : base
priority          : optional
name              : SketchUp Make 2017
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,
depends           : 
conflicts         : 
maturity          : PROD
locale            : fr
target_os         : windows
min_os_version    : 6.1
max_os_version    : 
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    : 
audit_schedule    : 
editor            : Trimble
keywords          : 3D,modele,graphic,design,drawing
licence           : Freeware or Commercial
homepage          : https://www.sketchup.com/
package_uuid      : f9dc1b36-1b2e-4cdd-b25a-5c8c954647b1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://help.sketchup.com/en/sketchup/older-release-notes
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : bXFPx4SbMImDo/QXj2bpaNjO23GCC6giFsdGb/CDBzD02jBppk9SFOGgV6nGQGisLfM0t/B8+jweKabbgnwvm4u4TPkiobutf70Yd7pK52bw9HX447Tj7T0PMcTFoeoJHd/hL2/4mm7tTAnTVK4b/HEslSKVbR28N/78vHsi7JLQ+qWcQagxy2hxcItHCX0QT+QjlkQ0J4z/xNGt6zb/MSUYRzx6rKQ7aG35lfbuGEftRIjVxvq4ZwDzeq9ZjiWTh8EK85ZPsgV+pX3wA93QB/s5tIZ/zFwsq+3QYEdnj51yAmozHrGc7nrRnvIDSzKnwqPCaKJS0E+AVNWi/cQ5DQ==
signature_date    : 2020-11-25T18:06:54.303353
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes
# -*- 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




3d2fec20236bb64b653c8d30887b3dfec8fa272a80e531499ca96b9daf0e3db4 : setup.py
4f1cc1f0fd7e82878fdf1e1bad359baf950772f8e8b9acc0933b7d8de86deae9 : SketchUp2017-x64.msi
a9a3fc6d21cb2d4ac403f59cf59552638fbb018a86137082c7d9c913753a422d : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4653e1ebc601f53f26a95216492e68585e935616b766ec5582d83f4488649b45 : WAPT/control