Détails du package

smp-freeplane

retour Revenir à la liste des packages

smp-freeplane


Version officielle sur le site de l'editeur : 1.9.12


Fichier control :

package           : smp-freeplane
version           : 1.8.8-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    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : b49124c9-774f-42d0-94f2-9c10ccbe9c0d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : MenrFacPVGfpmmk252Sn+nAsl1PO696ncQ49J0SkSr/7NqsUUJ4ZlUzYj1DHcNDxTKWjSOjEggyj5OsosXpFLt7m/iDbdoD0SwT+IJg/sXEqp2j9wwWtWywa3Ao492ZI3fKdIXmIIPRhelDWVJVQFWhhLqQNknWfQcieoeuSPPcBvGi+VHatZMLjqTVqOi78rWWa3++GIfaVwdJqaLd9oHZkhZDrJCXSx1dKJUNlzmVGFBEoZDIMU6MM2qXsCdMm/NGtVUE0+DmCVg7fqI1GpDpimjo9Z7P2Gtnf3OR5V9wGzcQ3pI2eJb9sDTuuHeK79dEBn/tMANwnyJaBflMaXQ==
signature_date    : 2020-10-08T10:52:16.382863
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



Fichier setup.py :

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

uninstallkey = []


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

def install():

    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')










def update_package():

    import requests
    """I retrieve the current version from the official site >>>"""
    htmlsource = ensure_unicode(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']
        ensure_unicode(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()