tis-algobox icon

Algobox

Silent install package for Algobox

1.1.0-5

  • package: tis-algobox
  • name: Algobox
  • version: 1.1.0-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.23 Mo
  • homepage : https://www.xm1math.net/algobox/

package           : tis-algobox
version           : 1.1.0-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      : 31a76cf8-0f08-45d8-91da-e667dec7c33c
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         : c9uu3iieDg0p5U0z3K3Z5+6eA4gmajgqbyShMPkOW865n5Xpnp8ljjoB47AKWSjqcByL85YAfJCBFK44hu87OpkW+DSz/gYRfXdHoiJI5Sx6ByrwP8RUEqFiCT4qdsrhC5Y/H0TvjDYxmmm0JmZhFkVNr3bXcnasx68iSiP4jJ1GT/7fJ5YS28S6WfjEeZ1XkuYKdUYc2BaFSU0Yy40/ewA9JPVNyLfpoEONGgJG0NPYjRmrjU5GQr7C0/Ks3lWXeki/VehgQ92I0o/6s+SLKtjoyiri6nVROCjmzxoVhVu7HRl1N5XTGBEMnW/FibasaNkd5JxL+pLxp/GliI3LmA==
signature_date    : 2022-07-28T03:54:13.560919
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():
    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

2fd15659ae8dd7fe01c7b8a5d87d83b79ca30800cc58b4052ec3d384ca878df1 : setup.py
db34dd74134f4e6bc63c92dd819d77e3b0d67290ba4e0cc6b7d8979bf9bde649 : update_package.py
f12da02e6ae06612b2b36bec22de9c53f770fcea57720b3ab74862bc61c5f1b2 : Algobox_1.1.0_Win_x64.msi
a5155f934dfbc28219fcd0cfb5732bdd56886ae40c6f8691a4bc3a3bed805cca : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2f9a17e6d451ac17c598cc61172d3d8c22b31bdb42beb78c07a323ed62555692 : luti.json
52ff46e6ebf071c098a558f70e2f24749d82844a7784b0994877e0abd014344d : WAPT/control