tis-inkscape

1.0.0-12
Inkscape is a free vector drawing software under the GNU GPL license
5648 downloads
Download

  Description 

  • package : tis-inkscape
  • version : 1.0.0-12
  • architecture : x64
  • categories : Utilities
  • maintainer : WAPT Team,Jimmy PELÉ,Simon Fonteneau
  • description : Inkscape is a free vector drawing software under the GNU GPL license
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://gitlab.com/inkscape/inkscape
  • installed_size :
  • impacted_process : inkscape
  • description_fr : Inkscape est un logiciel libre de dessin vectoriel sous licence GNU GPL
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Inkscape.org
  • licence : GPLv3+
  • signature_date : 2020-05-12T15:16:37.790000
  • Homepage : https://inkscape.org/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import requests
try:
    import bs4 as BeautifulSoup
except:
    import BeautifulSoup

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'inkscape-%s-x64.exe'
silent_args = '/S /ALLUSER=ON /CONTEXTMENU=OFF'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]

    bin_name = bin_name_string % package_version

    # Uninstalling version installed with exe instead of msi
    for uninstall in installed_softwares('inkscape'):
        if 'msiexec.exe' in str(uninstall_cmd(uninstall['key'])).lower() :
            run(uninstall_cmd(uninstall['key']))

    # Installing the package
    install_exe_if_needed(bin_name
        ,silentflags=silent_args
        ,key='Inkscape'
        ,min_version=package_version,get_version=get_version_ink)

def get_version_ink(key):
    return key['version'].split('-')[0]


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

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url = 'https://inkscape.org/release/?latest=1'

    # Getting latest version from official website
    page = requests.get(url,proxies=proxy).text
    bs = BeautifulSoup.BeautifulSoup(page)
    bs_raw_string = bs.find('h2',text='Revisions')
    label = bs_raw_string.findNext().findNext()
    version = label.find('label').text

    latest_bin = bin_name_string % version

    url_dl = 'https://media.inkscape.org/dl/resources/file/%s' % latest_bin

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    if len(version.split('.')) == 2:
        version = version + '.0'

    newfilename = bin_name_string % version

    # Downloading latest binaries
    if not isfile(newfilename):
        print('Downloading: ' + latest_bin)
        wget(url_dl,newfilename,proxies=proxy)

		# Change version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe'):
        if bin_in_dir != newfilename :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)

										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],[".vscode/settings.json","7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012"],[".vscode/launch.json","a9a5d4f2034c62f5ee173b543fbce9852483abfe0db40027f09d17e9cf69debb"],["inkscape-1.0.0-x64.exe","687eae5b0e36fa31bf0c2ddd47f543546db99a8b2756c38b0915c62c165fffca"],["setup.py","782ba2f8df5643c06a27e10b33076a2204ffd45f5d032741e76ebe6bfa8b4e52"],[".env","e312ee6c8275d1f07a4ce8ccbd1a17744f156a86929fc24e25e44fb10f0997dc"],["WAPT/control","f807c1f4236953ac2eafe98ecee81d65eb6b756a49b38bd380ecb72e636b86e4"],["WAPT/wapt.psproj","39d59e4b264b47219b507096ff5a17a34388b6f42d62fc2b5daf6710d6dc9aa8"]]