tis-mogan icon

Mogan

Silent install package for Mogan

1.2.9.2-3

  • package: tis-mogan
  • name: Mogan
  • version: 1.2.9.2-3
  • maintainer: Amel FRADJ
  • licence: GPL-3.0, Unknown licenses found
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 123.12 Mo
  • homepage : https://mogan.app/

package           : tis-mogan
version           : 1.2.9.2-3
architecture      : x64
section           : base
priority          : optional
name              : Mogan
categories        : 
maintainer        : Amel FRADJ
description       : Mogan STEM Suite (based on GNU TeXmacs): Enjoy exploring science and technology!
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Mogan STEM Suite (basé sur GNU TeXmacs) : Découvrez la science et la technologie !
description_pl    : Mogan STEM Suite (oparty na GNU TeXmacs): Ciesz się odkrywaniem nauki i technologii!
description_de    : Mogan STEM Suite (basierend auf GNU TeXmacs): Viel Spaß beim Erforschen von Wissenschaft und Technik!
description_es    : Mogan STEM Suite (basado en GNU TeXmacs): ¡Disfruta explorando la ciencia y la tecnología!
description_pt    : Mogan STEM Suite (baseado no GNU TeXmacs): Divirta-se a explorar a ciência e a tecnologia!
description_it    : Mogan STEM Suite (basato su GNU TeXmacs): Divertitevi ad esplorare la scienza e la tecnologia!
description_nl    : Mogan STEM Suite (gebaseerd op GNU TeXmacs): Geniet van het verkennen van wetenschap en technologie!
description_ru    : Mogan STEM Suite (на основе GNU TeXmacs): Наслаждайтесь изучением науки и техники!
audit_schedule    : 
editor            : 
keywords          : MoganResearch
licence           : GPL-3.0, Unknown licenses found
homepage          : https://mogan.app/
package_uuid      : a133296f-44dc-4063-90ab-5f52b3bcd562
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://mogan.app/guide/ChangeLog_v1.2.5.html
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9135677bd63dbac3e0268aca2bbfd31f03ded5ef68c9a680ea5f4dd969ce8292
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-02T16:03:15.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         : XAKMG0lKBG+fPKVQRvZpHNdm/Ee4FeFg/KtuFUJF7Wk7E9VdoayDmdGighovCg+R4SOXlpa839X5k48nB0Xk9Ezu1vRScZligjeyDj1ADRSAlB9VXVaq10LZmsU7jHWv0FZB28TKJZEmwVqpt1L9KPMbuYaRqZ39ui4Wn5xLFZqWUxIv0m53YjoepWHgaejBgQQ+9rJcxbuW43mWFxQTQx7QFfq+OmeRnLJDNdYLExykFYXkSuO9yJMezNSWBmk7szVXvAVqJQ6ks3p9eDDOCQWvgGuK4GA0ZXvJznsoiNJHFabWeZkZYWasJ1oExV+Q0RG0OZgiakGzOYGpiGSJsA==

# -*- coding: utf-8 -*-
from setuphelpers import *
import time
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# 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("MoganResearch-*-64bit-installer.exe")[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='MoganResearch',
        min_version=control.get_software_version()
    )
    uninstallkey.clear()

def uninstall():
    for uninstall in installed_softwares(uninstallkey="MoganResearch"):
        run(uninstall_cmd('MoganResearch'))

        time.sleep(60)

        if uninstall_key_exists("MoganResearch"): 
            unregister_uninstall('MoganResearch',win64app=uninstall['win64'])
    

def audit():
    if not uninstall_key_exists("MoganResearch"):
        print('uninstallkey MoganResearch not found')
        return "ERROR"
    else:
        return "OK"


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


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

    api_url = "https://api.github.com/repos/XmacsLabs/mogan/releases/latest"

    # Get data from API
    releases_dict = wgets(api_url, proxies=proxies, as_json=True)
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".exe"):
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"][1:]
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un exe a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

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

    control.set_software_version(version)
    control.save_control_to_wapt()

700eeb39fa4f5eaba4ee8839f6a813488a8f5f758722f4fb0e1c5c0c7240a70e : MoganResearch-v1.2.9.2-64bit-installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
ce5542a368d374b4775415208a59ab97c32586395d85255fdf2c11dda5ca1289 : WAPT/control
9135677bd63dbac3e0268aca2bbfd31f03ded5ef68c9a680ea5f4dd969ce8292 : WAPT/icon.png
c7969760442ca4eb66a327480c94060d2159ef9be79818c98016a19713645936 : luti.json
58efc2fdbc6baf0baab17c43d3bfdd6c9649ea27c84d51a42b61848d977579e6 : setup.py
37efd692109811eb8f001235df802ab4269a22c10c6b706d9b3cc352f92e1f8d : update_package.py