tis-freeplane
1.9.10-0
Freeplane is a free, open source software application for creating mind maps (diagrams of connections between ideas), and electronic outlines.
26939 downloads

Description
- package : tis-freeplane
- version : 1.9.10-0
- architecture : all
- categories : Utilities
- maintainer : WAPT Team,Jimmy PELÉ,Simon Fonteneau
- description : Freeplane is a free, open source software application for creating mind maps (diagrams of connections between ideas), and electronic outlines.
- locale : all
- target_os : windows
- min_wapt_version : 1.5
- sources : https://sourceforge.net/projects/freeplane/
- installed_size : 45473792
- impacted_process : freeplane.exe
- description_fr : Freeplane est un logiciel libre qui permet de créer des cartes heuristiques (ou Mind Map), diagrammes représentant les connexions sémantiques entre différentes idées.
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Dimitry Polivaev, et al.
- licence : GPLv2+
- signature_date : 2021-10-08T12:37:14.680004
- Homepage : https://www.freeplane.org/wiki/index.php
- Depends :
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_string = 'Freeplane-Setup-%s.exe'
silent_args = '/VERYSILENT /NORESTART'
app_uninstallkey = '{D3941722-C4DD-4509-88C4-0E87F675A859}_is1'
def install():
# Specific app values
package_version = control.version.split('-',1)[0]
# Getting the used storage on programfiles before installation (place it on the top)
get_disk_free_space_before = get_disk_free_space(programfiles)
# Installing the package
install_exe_if_needed(bin_name_string % package_version
,silentflags=silent_args
,key=app_uninstallkey
,min_version=package_version)
uninstallkey.remove(app_uninstallkey)
# Return used storage of the program. (place it on the bottom)
get_disk_free_space_after = get_disk_free_space(programfiles)
free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
print("Storage used: " + str(free_space_after_diff))
def uninstall():
uninstall_path = makepath(programfiles,'Freeplane','unins000.exe')
run('"%s" %s' % (uninstall_path,silent_args))
def update_package():
print('Download/Update package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if isfile(makepath(application_data(),'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://sourceforge.net/projects/freeplane/best_release.json'
import json
json_data = json.loads(wgets(url,proxies=proxy))['platform_releases']['windows']
latest_bin = json_data['filename'].split('/')[-1]
version = (latest_bin.split('-')[-1]).replace('.exe','')
url_dl = json_data['url']
print(url_dl)
print('Latest ' + app_name + ' version is: ' + version)
print('Download url is: ' + url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Change version of the package
from waptpackage import PackageEntry
print('Writing ' + version + '-0 in WAPT\\control')
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = version + '-0'
pe.save_control_to_wapt(os.getcwd())
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') or glob.glob('*.msi'):
if bin_in_dir != latest_bin :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)