tis-sweethome3d 5.5.2-1

  • package : tis-sweethome3d
  • version : 5.5.2-1
  • description : Sweet Home 3D est un logiciel libre d'aménagement d'intérieur qui vous aide à dessiner le plan de votre maison, y placer vos meubles et visiter le résultat en 3D.
  • maintainer : Simon Fonteneau
  • date : 2018-02-27 19:08:24

setup.py

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():

    versionpaquet = control['version'].split('-',1)[0]

    def verssweet(key):
        return get_file_properties(makepath(key['install_location'],'SweetHome3D.exe'))['ProductVersion']

    install_exe_if_needed('SweetHome3D-%s-windows.exe' % versionpaquet ,silentflags='/sp /verysilent',key='Sweet Home 3D_is1',min_version=versionpaquet,get_version=verssweet)


def update_package():

    import requests,urlparse
    url = requests.head('https://sourceforge.net/projects/sweethome3d/files/latest/download?source=files',proxies={}).headers['Location']
    dstexe = requests.head(url,proxies={}).headers['Location'].replace('.jar','-windows.exe')
    filename = urlparse.unquote(dstexe.rsplit('/',1)[1])
    vers = filename.split('-')[1]
    print ("Latest Version : " + vers)

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filename:
            remove_file(fn)

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,dstexe))
        wget(dstexe,filename)
    else:
        print('Already up to date, skipped')

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()


    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "011f1d92e703c08cf0f7c6bd0bd80e440619151cf255653f980ed6b24c719b9e"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["SweetHome3D-5.5.2-windows.exe", "5eaf18cc7e64c1f0c82f5e41dd16df0dd603dfaa509c0756b446f5a1651d1624"], ["setup.py", "c748feb30da9b9f7bee1dbdfb56c446af83be1594fe0be03a9726449b47f4205"], ["WAPT/control", "5ba82b07f3fa0da68b1d9d02e8c2995f57fc947c3bf67e301932f06d58efac08"]]