
Mogan
Silent install package for Mogan
1.2.9.7-2
- package: tis-mogan
- name: Mogan
- version: 1.2.9.7-2
- maintainer: Amel FRADJ
- licence: GPL-3.0, Unknown licenses found
- target_os: windows
- architecture: x64
- signature_date:
- size: 127.61 Mo
- homepage : https://mogan.app/
package : tis-mogan
version : 1.2.9.7-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 : c26b90a6-ee1c-4271-a616-733f1348e32a
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-12-04T06:00: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 : yi+zUMU96kW8T/6rqON7mQp773DGBKCpyoy6QscTmM7AhVMURr47ZbmFZUkjd8UTLqKWY+ce6EqBGP6OAsvLCYdAafa16qHeAPytbu+ptp4C8g6LFBEqrRkifTl97iQLQh7mYZYKyct8/NE+/B7HKfwNetRHKqbtF/txfL5z6x4xcGnTZm030M1Cf/bKcaJHbjhpXKtaqFXWYUpiWVB0//JfHQDuBn83zexAIAZzyD1B9FMMDQ9av440HzSTd4/cM8wCv92cMng93uQVwZ+iLLe84gX30gBRPGwnN6LbvxEOCwUlcAPxiK9FY6Uar9VzdkYr9vuBUzSrXYzwJWi/MA==
# -*- 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()
3eeb3f15b930110b22febe3a27e937efaceaa7821d62c6b73a1f17484825dc46 : MoganResearch-v1.2.9.7-64bit-installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b30e65d8bcb6f5cae2241b97ecaf7607d7b3ea2fffab37085cd5b0e3bd5a3b85 : WAPT/control
9135677bd63dbac3e0268aca2bbfd31f03ded5ef68c9a680ea5f4dd969ce8292 : WAPT/icon.png
4ace47d3297b9ff5839af362141407d4a2c1678cccc652993e5301e781830b40 : luti.json
58efc2fdbc6baf0baab17c43d3bfdd6c9649ea27c84d51a42b61848d977579e6 : setup.py
37efd692109811eb8f001235df802ab4269a22c10c6b706d9b3cc352f92e1f8d : update_package.py