tis-algobox icon

Algobox

Silent install package for Algobox

1.1.1-5

  • package: tis-algobox
  • name: Algobox
  • version: 1.1.1-5
  • categories: Educational
  • maintainer: Simon Fonteneau
  • editor: Pascal Brachet
  • licence: GNU/GPL
  • locale: all
  • target_os: windows
  • impacted_process: algobox
  • architecture: x64
  • signature_date:
  • size: 71.21 Mo
  • homepage : https://www.xm1math.net/algobox/

package           : tis-algobox
version           : 1.1.1-5
architecture      : x64
section           : base
priority          : optional
name              : Algobox
categories        : Educational
maintainer        : Simon Fonteneau
description       : Algobox is an easy-to-use educational software for learning algorithms, distributed under the GNU/GPL license.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.xm1math.net/algobox/download.html#source
installed_size    : 
impacted_process  : algobox
description_fr    : Algobox est un logiciel pédagogique d’initiation à l’algorithmique simple d’emploi, distribué sous licence GNU/GPL.
description_pl    : Algobox jest łatwym w użyciu oprogramowaniem edukacyjnym do nauki algorytmów, rozpowszechnianym na licencji GNU/GPL.
description_de    : Algobox ist eine einfach zu bedienende Lernsoftware für Lernalgorithmen, die unter der GNU/GPL-Lizenz vertrieben wird.
description_es    : Algobox es un software educativo fácil de usar para el aprendizaje de algoritmos, distribuido bajo la licencia GNU/GPL.
description_pt    : Algobox é um software educacional fácil de usar para algoritmos de aprendizagem, distribuído sob a licença GNU/GPL
description_it    : Algobox è un software didattico di facile utilizzo per l'apprendimento degli algoritmi, distribuito con licenza GNU/GPL
description_nl    : Algobox is een eenvoudig te gebruiken educatieve software voor het leren van algoritmen, gedistribueerd onder de GNU/GPL licentie
description_ru    : Algobox - это простое в использовании образовательное программное обеспечение для изучения алгоритмов, распространяемое под лицензией GNU/GPL
audit_schedule    : 
editor            : Pascal Brachet
keywords          : 
licence           : GNU/GPL
homepage          : https://www.xm1math.net/algobox/
package_uuid      : e3f22e85-3e1b-4406-922e-f48aa7a980ce
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : a5155f934dfbc28219fcd0cfb5732bdd56886ae40c6f8691a4bc3a3bed805cca
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Uh5aiZzHGPrucwmnpNdjn/4lQlrnvmUiCvt1HkJxJeJDNii3KZ04mE3LgWGph+qV+8RDNFuobrm5wnmWQ/8FT9voYfkZPAmgKmXpHEPkNshADnXPe/Jaz/w0z/tkypO1qPhGZNZvFD0X61THOdxlGTWswT9iQDsFJKV6q/S4ZkA3gnr16bfUhkpz/OdzVgdvz2EveLLZDOhLy5R0NXXzY9IuOgqHKhe9nLoufx8GqNsebcDEzSrZHKGykhrd2ayERf1UpKaeeT9eh+hkR4uwqj54nQ49OCT0Wh3IQnjFa4jOtMjhiPo/ho2oatk5k+4vJ1B04yA8e0G0B9izU5YdAA==
signature_date    : 2022-11-05T13:06:24.536960
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 *


def install():
    # Uninstalling older versions of the software
    for to_uninstall in installed_softwares(name=r"\bAlgobox"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])
    bin_name = glob.glob("Algobox_*.msi")[0]
    install_msi_if_needed(bin_name)

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


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    version = wgets("http://www.xm1math.net/algobox/", proxies=proxies).split("version ")[1].split("</b><span")[0].strip()
    latest_bin = "Algobox_" + version + "_Win_x64.msi"
    download_url = "http://www.xm1math.net/algobox/assets/files/" + latest_bin

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_msi_properties(latest_bin)["ProductName"].split(" ")[1]
    # 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, latest_bin.replace(version, version_from_file))
        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.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result

f056198e08449985e5b8182c7b617d6c353618ddb17b9e3759d0c630a027727d : setup.py
db34dd74134f4e6bc63c92dd819d77e3b0d67290ba4e0cc6b7d8979bf9bde649 : update_package.py
16831271f102adaa3122c564cd216f3231983a14387277ae32d7b614dd6ff786 : Algobox_1.1.1_Win_x64.msi
a5155f934dfbc28219fcd0cfb5732bdd56886ae40c6f8691a4bc3a3bed805cca : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7f4d90ffdcea02f07a49c84421738523a8f8fb7a0bde9c3d8e68f8454324295b : luti.json
799c876b8fc8cc0c936e3ebccfd0de75584e270c66aaab68c34bebd255184d56 : WAPT/control