tis-ganttproject icon

GanttProject

Silent install package for GanttProject

3.3.3312-19
Office
Office

  • package: tis-ganttproject
  • name: GanttProject
  • version: 3.3.3312-19
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Gaëtan SEGAT
  • editor: BarD Software
  • licence: GPLV3
  • locale: all
  • target_os: windows
  • impacted_process: ganttproject
  • architecture: all
  • signature_date:
  • size: 136.40 Mo
  • installed_size: 181.71 Mo
  • homepage : https://www.ganttproject.biz/

package           : tis-ganttproject
version           : 3.3.3312-19
architecture      : all
section           : base
priority          : optional
name              : GanttProject
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Gaëtan SEGAT
description       : GanttProject is GPL-licensed Java based, project management software
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.ganttproject.biz/download
installed_size    : 181714944
impacted_process  : ganttproject
description_fr    : GanttProject est un logiciel libre de gestion de projet écrit en Java
description_pl    : GanttProject jest oprogramowaniem do zarządzania projektami opartym na licencji GPL w języku Java
description_de    : GanttProject ist eine GPL-lizensierte, Java-basierte Projektmanagement-Software
description_es    : GanttProject es un software de gestión de proyectos basado en Java con licencia GPL
description_pt    : GanttProject é um software de gestão de projectos baseado em Java e licenciado por GPL
description_it    : GanttProject è un software di gestione dei progetti basato su Java con licenza GPL
description_nl    : GanttProject is GPL-gelicenseerde, op Java gebaseerde, project management software
description_ru    : GanttProject - это программное обеспечение для управления проектами на базе Java с лицензией GPL
audit_schedule    : 
editor            : BarD Software
keywords          : project,management,gant,gantt,diagram,chart
licence           : GPLV3
homepage          : https://www.ganttproject.biz/
package_uuid      : 3921f034-81bb-4e35-9c17-5c963bbba0ef
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/bardsoftware/ganttproject/releases
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : d3842b5345c775bd107a1926011e14f2e55b0aba1c88b9656767fd4cd793da2a
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-15T09:01:43.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,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,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : BtaPYK/3kLMtI7l3UWnb8ijPxuEQ4Wmfw+U3TnPwv9mEjg4Pb4l6XlKX4Z7FXF39p5Z5htNjNKa4oa/OmtB46/606Lzu/aq/cUYT9vI+HFix2QGIPuGfJ0Rhg4EyWLI2Ja/Pz9AhzdephMLQEVhv91NAbXbz54e6vGg+yvuA5/OxMq2vsOZ211BtBGjtZ/zlJKNSjZPdLkag1XWFT32XLlRmdFmdO7A8CqB6zzK2o5dMMWD01+36WEp8VTQsPxWqsoKw6OKyEv18sZCaSlCqXfnmQeQbUdCtZ1GEfKTILDvZxUAdn3NH2H7WZkFUBoR/TWnd63BnbFdZu1lgtQ4wWg==

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

def install():
    def get_complete_version(key):
        version_soft = '0' 
        for path in glob.glob(makepath(programfiles32,'GanttProject*','plugins','base','VERSION')):
            with open(path,'r') as f : 
                version_soft = f.read().replace('\n','')
        return version_soft
 
    
    # Initializing variables
    version = control.get_software_version()
    bin_name = glob.glob('ganttproject-*.exe')[0]
    # Installing the package
    print("Installing: %s" % bin_name)
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='GanttProject',
        min_version=version,
        get_version=get_complete_version,
    )
    # Fixing uninstall entry in Windows registry and make it silently uninstallable
    for soft in installed_softwares(uninstallkey='GanttProject'):
        if soft['version'] != version:
            quiet_uninstall_string = soft['uninstall_string'] + ' /S'
            register_uninstall('GanttProject',
                uninstallstring=soft['uninstall_string'],
                quiet_uninstall_string=quiet_uninstall_string,
                display_version=version,
                publisher=control.editor,
            )
    """ for WAPT 2.0+
    for soft in installed_softwares(uninstallkey=app_uninstallkey):
        if soft['version'] != package_version:
            quiet_uninstall_string = soft['uninstall_string'] + ' /S'
            register_uninstall(app_uninstallkey,
                uninstallstring=soft['uninstall_string'],
                win64app=True,
                quiet_uninstall_string=quiet_uninstall_string,
                icon=makepath(app_dir, 'ganttproject.ico'),
                display_version=get_soft_version(),
                installed_size=int(str(control.installed_size)[:-3]),
                publisher=control.editor,
            ) """
def session_setup():
    # Define local 
    config_path = makepath(user_home_directory(), ".ganttproject")
    
    # Disable check update
    if isfile (config_path):
        # Read config file
        config_file_read = open(config_path, "r")
        config_file = config_file_read.readlines()
        count = 0
        for line in config_file:
            if r'<option id="platform.update.checkEnabled" value="true"/>' in line :
                config_file[count] = r'    <option id="platform.update.checkEnabled" value="false"/>' + "\n"
            count = count + 1
        config_file_read.close()
        # Write config file
        config_file_read = open(config_path, "w")
        config_file_read.writelines(config_file)
        config_file_read.close()


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

def update_package():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url_api = "https://api.github.com/repos/bardsoftware/ganttproject/releases/latest"
    # Getting latest version from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))
    for download in json_load["assets"]:
        if download["name"].endswith(".exe"):
            url_dl = download["browser_download_url"]
            version = download["browser_download_url"].split('/')[-1].split('-')[1].replace('.exe','')
            break
    # Use of the binary name because the git repository does not return the last release
    #version = url_dl.split("ganttproject-")[-1].split(".exe")[0]
    latest_bin = "ganttproject-%s.exe" % version
    print("Latest %s version is: %s" % (control.name, version))
    print("Download url is: %s" % url_dl)
    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)
        # Changing version of the package
        control.set_software_version(version)
        control.save_control_to_wapt()
        print("Changing package version to: %s in WAPT\\control" % control.version)
    # Deleting outdated binaries
    remove_outdated_binaries(version)

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3a37f519929235537052baff936764ec3703d140d213c21c9a34f1a8657ae8f3 : WAPT/control
d3842b5345c775bd107a1926011e14f2e55b0aba1c88b9656767fd4cd793da2a : WAPT/icon.png
2ba16e9a215e20b171f8e48c170af7fa65dd326d342116e1db45da453ff5c645 : ganttproject-3.3.3312.exe
e11fa0c8838d91984545d8011ea5e0147822492fdd1732a1148380180523b62b : luti.json
14f410f1469bcaf1a0dd8cef07a64ac2e70af5707863b169076d171e8e6bfa81 : setup.py
dcf857f779e82c43e1cbbb149c407e2100918c3fd27f53c144dd8672349e1fe8 : update_package.py