Mogan
Silent install package for Mogan
2025.2.0-2
- package: tis-mogan
- name: Mogan
- version: 2025.2.0-2
- maintainer: Amel FRADJ
- licence: GPL-3.0, Unknown licenses found
- target_os: windows
- architecture: x64
- signature_date:
- size: 164.09 Mo
- homepage : https://mogan.app/
package : tis-mogan
version : 2025.2.0-2
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 : a13ddfe7-944a-4582-ae79-91f49c1b0305
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 : 2025-12-05T09:02:03.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 : Y9a7oEz1dhhfVJ9rp4wIJGZuqjjYIaRj985f1vbyFD869qj6Ke6vbV4rAFA5KAehgi6ScNBJ1fx+uvA1eE9SjOu6QYTacQv1EPEYembCoWW2SZmtwqI4HBejti26hcB1sAz8+4qJ04g8AhW8Cq7OQbstLl0fw0jrdGxu9fSYQq/zETAkc9egXcs9oMU1KQmuJ+QhZSSrj0Qc6QjsHAmkpMMmE1rQ5viGgLNYGZ/z77ULCBl68R6rnCzlPX10iOfOHNqDzVRCpph/L4Fm5yCo26N11mqA/QRWp6idbci1DU2mcLaBFL5B9OO9EpTPb/1FLiWZD06aUCvygH1z7qOTzw==
# -*- 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("Mogan*.exe")[0]
# Installing the software
# Uninstalling older version of the software that can remains
for to_uninstall in installed_softwares("Mogan"):
if Version(to_uninstall["version"]) < Version(control.get_software_version()):
print(f"Removing: {to_uninstall['name']} ({to_uninstall['version']})")
killalltasks(ensure_list(control.impacted_process))
run(uninstall_cmd(to_uninstall["key"]))
time.sleep(60)
unregister_uninstall(to_uninstall['key'],win64app=to_uninstall['win64'])
install_exe_if_needed(bin_name,
silentflags='/S',
key='MoganSTEM',
min_version=control.get_software_version()
)
def uninstall():
for uninstall in installed_softwares("MoganSTEM"):
run(uninstall_cmd(uninstall["key"]))
time.sleep(60)
if uninstall_key_exists(uninstall["key"]):
unregister_uninstall(uninstall["key"])
def audit():
if not uninstall_key_exists("MoganSTEM"):
print('uninstallkey MoganSTEM 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()
c1460423934a884cccd74a4cd7bfa5f21556795c159295909d85afbee00ba9a1 : MoganSTEM-v2025.2.0-64bit-installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8a7f673f92afbd73ba6d201d3741927465078a80f2829993a67e43464c445c39 : WAPT/control
9135677bd63dbac3e0268aca2bbfd31f03ded5ef68c9a680ea5f4dd969ce8292 : WAPT/icon.png
684bda0825d26473c2f681aa6a68daf54518a091f18bc96587b500886a50f62c : luti.json
05845d7756ff5caf4ef5a766a209b81ebb9786f3050a731838ce5cb3ef0df8aa : setup.py
37efd692109811eb8f001235df802ab4269a22c10c6b706d9b3cc352f92e1f8d : update_package.py