
Mogan
Silent install package for Mogan
2025.1.0-2
- package: tis-mogan
- name: Mogan
- version: 2025.1.0-2
- maintainer: Amel FRADJ
- licence: GPL-3.0, Unknown licenses found
- target_os: windows
- architecture: x64
- signature_date:
- size: 156.52 Mo
- homepage : https://mogan.app/
package : tis-mogan
version : 2025.1.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 : 093ef262-4528-466e-aa3f-29997f8112c5
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-08-23T10:01:40.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 : jMr+8VSlywRkpr/GolTh1s22Pt/X21bk8+KdQf3lzTALexSK5bc3qGy2zDuoQbKnY2DbjsR8MhGq9SXiGdQPng5GQV3IqbUzkU3lgorIQ9WkPlJNaVAC6SNEA6KTPC7pQ8XgssOUpvd+5Rmr13zxUiolF317tQpOKcHxF/ieRrMFwH5zsLJjm09OlqPurBVRwXrJygWmZkj0U0TucOueqlaHivjU+e5UjHPQ2+SOlnSHozPNUV/RgBNc6yPgrw8S2Sl80r9s5Ck2fdwC1AkHoYxbdhBMsf6DDTDgn5THYA2IWJglKICaWvxEDvQjucC34FuNdvBZDGmjnsjQOjxHrA==
# -*- 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()
5ed01a1585c87e2018c45d1dee2cd9a1aca3dfc5661f820eddcd23453615e408 : MoganSTEM-v2025.1.0-64bit-installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
ab709b9d1b03d6061a3088fd47602b5c52c0754b4e31fd1397a124fc07366cd3 : WAPT/control
9135677bd63dbac3e0268aca2bbfd31f03ded5ef68c9a680ea5f4dd969ce8292 : WAPT/icon.png
9986d9edd51fcd4dbd39411d2bbf995ad6c6a3777be9f28a98fe238ade4ea476 : luti.json
05845d7756ff5caf4ef5a766a209b81ebb9786f3050a731838ce5cb3ef0df8aa : setup.py
37efd692109811eb8f001235df802ab4269a22c10c6b706d9b3cc352f92e1f8d : update_package.py