tis-projectlibre icon

ProjectLibre

Silent install package for ProjectLibre

1.9.3-6

  • package: tis-projectlibre
  • name: ProjectLibre
  • version: 1.9.3-6
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • licence: CPAL
  • locale: all
  • target_os: windows
  • impacted_process: ProjectLibre
  • architecture: x64
  • signature_date:
  • size: 66.91 Mo
  • installed_size: 223.85 Mo
  • homepage : http://www.projectlibre.com/

package           : tis-projectlibre
version           : 1.9.3-6
architecture      : x64
section           : base
priority          : optional
name              : ProjectLibre
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : ProjectLibre is a free and open-source project management software
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://sourceforge.net/projects/projectlibre/files/
installed_size    : 223854592
impacted_process  : ProjectLibre
description_fr    : ProjectLibre est un outil open source de planification de projet
description_pl    : ProjectLibre to darmowe i open-source'owe oprogramowanie do zarządzania projektami
description_de    : ProjectLibre ist eine freie und quelloffene Projektmanagementsoftware
description_es    : ProjectLibre es un software de gestión de proyectos gratuito y de código abierto
description_pt    : ProjectLibre é um software de gestão de projectos gratuito e de código aberto
description_it    : ProjectLibre è un software di gestione dei progetti gratuito e open-source
description_nl    : ProjectLibre is een gratis en open-source project management software
description_ru    : ProjectLibre - это бесплатное программное обеспечение для управления проектами с открытым исходным кодом
audit_schedule    : 
editor            : 
keywords          : 
licence           : CPAL
homepage          : http://www.projectlibre.com/
package_uuid      : c2468cb8-0b71-4cfb-828f-cad844fed9d7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : d9a499823d03ac8c653f0eb6f2ef1dfcdaf6aeca2834e2ee8d63da12f05c52a3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : a2+7kITLpkaL46pcWrv9tz3H4Wx3ewMVkE6PtgCXIE38lQ2kK9mW1QVdJBmDTWYPGrkXsOhgF1GlQ1yKypk5zVQ1XFi60g5aSVmHfS/NWDUFjD1FFuwJZ3A5gqMj4VW71vrLkf+vxWFRg+qQe/n7siD2A0kbUZBMo6a1DhFuY32TNEwOH708UUk2Rm1NYWeBmFUbvD2SvtgP3Kvu/XGiIa4US9ZLToWFKPRjPS7h5CoE0XebvVKdSV50mNVO1tGnsV8F/IWjWHCFyxlDZq/2CCd4FxwpS70MRjnWJ1TmgImPQvrQ6lUf30Wq3kI3pLXDuK91XymbQK6N5c6q2cWPig==
signature_date    : 2022-08-02T03:34:52.607101
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

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob("*projectlibre-*.exe")[0]

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(
        bin_name,
        key="{com.projectlibre1.main}}_is1",
        min_version=control.get_software_version(),
    )

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "projectlibre-"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://sourceforge.net/projects/projectlibre/best_release.json"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["platform_releases"]:
        if bin_contains in json_load["platform_releases"][download]["filename"] and ".exe" in json_load["platform_releases"][download]["filename"]:
            download_url = json_load["platform_releases"][download]["url"]
            version = json_load["platform_releases"][download]["filename"].split("/")[-2]
            latest_bin = json_load["platform_releases"][download]["filename"].split("/")[-1]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        # if not version_from_file.startswith(version) and version_from_file != '':
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
            os.rename(latest_bin, bin_contains + version_from_file + ".exe")
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

da4046e343d7669bb6232efd80cea1ee144bb7e5bbd33ab4dbe5793b20cdc761 : setup.py
62b3bbe09461178278a0cc4ac72d0a04a3181e0fe518136403209e1b86000571 : update_package.py
d9a499823d03ac8c653f0eb6f2ef1dfcdaf6aeca2834e2ee8d63da12f05c52a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
46c55b42a7efdbead3e98324d57509937afaa8e3c8015d85b6b1c1683cfbad0f : luti.json
069f0d89a94a35d8105a59bdb1e4e4765aabca378d17c7b21c732fd61c5cbed3 : projectlibre-1.9.3.exe
c5527134b6b051b270c5612fffc60a6fb66ce75b2d4eb6cb932e843de932e8c7 : WAPT/control