Détails du package smp-freeplane_1.7.9-1_all_all.wapt
retour Revenir à la liste des packages

smp-freeplane

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-freeplane
version           : 1.7.9-1
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Simon Fonteneau
description       : Freeplane is a free and open source software application that supports thinking, sharing information and getting things done at work, in school and at home
depends           : smp-java
conflicts         : 
maturity          : 
locale            : all
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 91475968
impacted_process  : freeplane.exe
description_fr    : Freeplane est un logiciel open source qui vous permet d'organiser, visualiser et partager des informations rapidement.
description_pl    : 
description_de    : 
description_es    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 76b91955-bf60-4360-8365-c70c0d24c624
valid_from        : 
valid_until       : 
forced_install_on : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : LTquH4drutckm0CffXQ2ErCkUzO4HNJ5d8cuVRTmtQNc05OaLZ+PAPardNdqQT3j34PCJzPa2aa5MF7rJ5fbdqKYlBSV0ducqu0YMOgZD3mYeQ0TU9ntGq8uDc+v3bUUKVxGVnQ+BGlsVY26yAhUSjyw3L7Cd+c6iSQcFgYiii3xcfUZZNHdz4g4u7n930Q1XJ9DzAg9lyY45uU89PigIFUVV9pFYkEUltI0p1bhH3v65LaILuPOnVgx4Kldgwlf4TJpt3zUVPLGEpKGrTeV8Iu3Q7KwpeMNoFsn9iGwfOKvZB4PZTFq863j+xzkWwUbSLqT7n1I5mdwe3V+lxow1A==
signature_date    : 2019-06-18T08:10:47.948000
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,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

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

uninstallkey = []


""" You can do a CTRL F9 in pyscripter to update the package """

def install():

    diskfreespacebefore = get_disk_free_space(programfiles)

    print('installing smp-freeplane')
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed("Freeplane-Setup-%s.exe" % versionpaquet ,'/VERYSILENT','{D3941722-C4DD-4509-88C4-0E87F675A859}_is1',versionpaquet)
    remove_desktop_shortcut('FreePlane')

    diskfreespaceafter = get_disk_free_space(programfiles)
    difffreespace = diskfreespacebefore - diskfreespaceafter
    #print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))

""" You can do a CTRL F9 in pyscripter to update the package """













def update_package():

    import requests
    """I retrieve the current version from the official site >>>"""
    htmlsource=wgets("https://www.freeplane.org/wiki/index.php/Main_Page")
    for line in htmlsource.splitlines() :
        if ' version ' in line :
            realversion = line[line.find(" version ") + 9 :line.find(')')]
            break

    """I download the file if it does not exist >>>"""
    if not isfile("Freeplane-Setup-%s.exe" % realversion):
        url = requests.head('https://downloads.sourceforge.net/project/freeplane/freeplane%20stable/Freeplane-Setup-' + realversion + '.exe' ,proxies={}).headers['Location']
        wget(url, "Freeplane-Setup-%s.exe" % realversion)

    """
    I list all the exe file of the package and test a filename
    if name returned does not correspond to the previous one, I delete the file
    >>>
    """

    allexe = glob.glob('*.exe')
    for exe in allexe:
        if exe != "Freeplane-Setup-%s.exe" % realversion :
            remove_file(exe)

    """I write the version in the control file >>>"""

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

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

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

    print('The update is complete, you can now test and then launch a build upload.')



if __name__ == '__main__':
    update_package()