tis-mblock icon

mBlock

Silent install package for mBlock

5.4.2-1

  • package: tis-mblock
  • name: mBlock
  • version: 5.4.2-1
  • categories: Development
  • maintainer: JPadmin
  • locale: all
  • target_os: windows
  • impacted_process: mBlock.exe
  • architecture: x64
  • signature_date:
  • size: 310.47 Mo
  • installed_size: 623.78 Mo

package           : tis-mblock
version           : 5.4.2-1
architecture      : x64
section           : base
priority          : optional
name              : mBlock
categories        : Development
maintainer        : JPadmin
description       : mBlock 5 is a block-based and code-based programming software designed for Science, Technology, Engineering, Arts and Mathematics (STEAM) education
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.mblock.cc/en-us/download
installed_size    : 623783936
impacted_process  : mBlock.exe
description_fr    : mBlock 5 est un logiciel de programmation basé sur les blocs et le code conçu pour l'enseignement des sciences, de la technologie, de l'ingénierie, des arts et des mathématiques (STEAM)
description_pl    : mBlock 5 to oprogramowanie do programowania oparte na blokach i kodach, zaprojektowane dla edukacji Science, Technology, Engineering, Arts and Mathematics (STEAM)
description_de    : mBlock 5 ist eine block- und codebasierte Programmiersoftware, die für den Unterricht in den Bereichen Wissenschaft, Technologie, Ingenieurwesen, Kunst und Mathematik (STEAM) entwickelt wurde
description_es    : mBlock 5 es un software de programación basado en bloques y en código diseñado para la enseñanza de la ciencia, la tecnología, la ingeniería, las artes y las matemáticas (STEAM)
description_pt    : mBlock 5 é um software de programação baseado em blocos e em código concebido para o ensino da Ciência, Tecnologia, Engenharia, Artes e Matemática (STEAM)
description_it    : mBlock 5 è un software di programmazione a blocchi e a codice progettato per l'educazione alle scienze, alla tecnologia, all'ingegneria, alle arti e alla matematica (STEAM)
description_nl    : mBlock 5 is blok- en codegebaseerde programmeersoftware ontworpen voor Wetenschap, Technologie, Techniek, Kunst en Wiskunde (STEAM) onderwijs
description_ru    : mBlock 5 - это программное обеспечение для программирования на основе блоков и кодов, разработанное для образования в области науки, технологии, инженерии, искусства и математики (STEAM)
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : bc975680-69b2-4423-8f75-1aa535c1a364
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 7f69cfaeef1e6d9afea3aff7c000e6bd662a3e042b28a7582ffbf32fad6738e3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : yReqybZeLiHzCXJgd2U2kH2hHLxyqicdK7JPPpQzf7F5MzSCq9T0y/PwABEXLPXXYHd28Sqfq3CCpUkQZTKR0p0nqCZVoVt8sjJmuuD3dN+paVXqc+sPYzNmUusxbwhPKj1ZpCezP2DTDMbmGoapBDB03incB2bE9BdeswvKg5fpsF9DG0y93yF4FsAFT53yD8Z8upKDZdEXB8JTNaLSQ60g8sFxvrR9lGJ+Mkn8GawwqWmlo+Oa21dcLZF6ZQhB5rkKPKpJp3ZzWYAzikxsQaKiSvHxQv0XA3oHyA8h1ot48yrDIV3I02Zy9/NO6YnlEC8bkgjbGjXms4VdAN3fzQ==
signature_date    : 2023-10-01T04:00:19.711464
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():
    print("installing %s" % control.asrequirement())

    # Installing the package
    install_exe_if_needed(
        glob.glob("V*.exe")[0],
        silentflags="/S",
        name="mBlock",
        min_version=control.get_software_version(),
    )

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


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

    t= requests.head('https://s.mblock.cc/download/pc-windows',proxies=proxies)
    download_url = t.headers['location']
    latest_bin = download_url.split('/')[-1]
    version = latest_bin.replace('V','').replace('.exe','')

    # 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_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, 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)))
        package_updated = 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 package_updated

72bb8ec46357a9ec39daadc5b1af253c8b2dd5059971b825f466b7e9a175232f : setup.py
7f8618c8b24ea62fc2ae1656e5f717b2c93ffed337cfcc79fdaa3f5fec32d1a4 : V5.4.2.exe
3146dfd71cd510192c3bae5bd094e31f9cef66e70439b72c154578e9c39883a1 : update_package.py
c6246be77fa0d87cb8860fc9de433dfc02b56edaaca368712d5b6267141eeee4 : WAPT/wapt.psproj
7f69cfaeef1e6d9afea3aff7c000e6bd662a3e042b28a7582ffbf32fad6738e3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a014fa19317d0adbbd348e7e6c10f5bea51baa6486ed62ca2036101060288e87 : WAPT/changelog.txt
b53afc05ae17be3e655b5c37ed5b256300a341306950c5e270d4ddefa4c53548 : luti.json
e35efabfc9f51ab1a0a81902e8192005edc46f0ff7d259fdf9fe82a170c07e47 : WAPT/control

https://www.mblock.cc/releaselogs-mblock5/