tis-mattermost-desktop

5.8.0-2
Mattermost est un service de discussion instantanée open source en auto-hébergement. Il est conçu comme un chat interne pour les organisations et les entreprises, et il est présenté comme une alternative à Slack
23353 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-mattermost-desktop icon
  • package : tis-mattermost-desktop
  • name : Mattermost
  • version : 5.8.0-2
  • categories : Messaging
  • maintainer : WAPT Team,Tranquil IT,Kevin Guerineau,Simon Fonteneau,Gaëtan SEGAT,Jimmy PELÉ
  • editor : Mattermost
  • licence : opensource_free,cpe:/a:apache:license_2.0,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process : Mattermost
  • architecture : x86
  • signature_date : 2024-05-21 15:00
  • size : 88.39 Mo
  • installed_size : 274.96 Mo
  • homepage : https://mattermost.com
package           : tis-mattermost-desktop
version           : 5.8.0-2
architecture      : x86
section           : base
priority          : optional
name              : Mattermost
categories        : Messaging
maintainer        : WAPT Team,Tranquil IT,Kevin Guerineau,Simon Fonteneau,Gaëtan SEGAT,Jimmy PELÉ
description       : The most important is an open source instant chat service in self-hosting. It is designed as an internal chat for organizations and businesses, and is presented as an alternative to Slack
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://github.com/mattermost/desktop/releases
installed_size    : 274963484
impacted_process  : Mattermost
description_fr    : Mattermost est un service de discussion instantanée open source en auto-hébergement. Il est conçu comme un chat interne pour les organisations et les entreprises, et il est présenté comme une alternative à Slack
description_pl    : Najważniejszym z nich jest usługa open source instant chat w self-hostingu. Został zaprojektowany jako wewnętrzny czat dla organizacji i firm, i jest przedstawiany jako alternatywa dla Slacka
description_de    : Der wichtigste ist ein Open-Source-Sofort-Chat-Dienst, der selbst gehostet wird. Er ist als interner Chat für Organisationen und Unternehmen konzipiert und wird als Alternative zu Slack vorgestellt
description_es    : El más importante es un servicio de chat instantáneo de código abierto en autoalojamiento. Está diseñado como un chat interno para organizaciones y empresas, y se presenta como una alternativa a Slack
description_pt    : O mais importante é um serviço de chat instantâneo de código aberto em auto-hospedagem. É concebido como um chat interno para organizações e empresas, e é apresentado como uma alternativa ao Slack
description_it    : Il più importante è un servizio di chat istantanea open source in self-hosting. È stato progettato come chat interna per organizzazioni e aziende e si presenta come un alternativa a Slack
description_nl    : De belangrijkste is een open source instant chat dienst in zelf-hosting. Het is ontworpen als een interne chat voor organisaties en bedrijven, en wordt gepresenteerd als een alternatief voor Slack
description_ru    : Наиболее важной является служба мгновенного чата с открытым исходным кодом на хостинге. Он разработан как внутренний чат для организаций и предприятий и представлен как альтернатива Slack
audit_schedule    : 
editor            : Mattermost
keywords          : 
licence           : opensource_free,cpe:/a:apache:license_2.0,wapt_public
homepage          : https://mattermost.com
package_uuid      : f38e8139-9640-4099-821b-154dddd56819
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 5.1
max_os_version    : 
icon_sha256sum    : 4307a126541db80e738ed7d47f927fa749dcc2a87b03decb54dfacb32a8e0bc6
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : rI0IFx7kheFeKDwX09gKCc/oJtMos/xH1ogYOuclDIlMmguesN2k8OXzOFVEMSmDbf+MFczYNakX5/4rWguq1n4Tepj1nWf5CSOXb+VvlirixXLQGLSWT5eI6KRrJC3yO94IAspuQE2o/meOdl8If3cw1XneyAuXu/R9Fhrw91+9QqZQ5qvF/CQyzL4d6C18Q1jYJDwAfgTVDkPcM60TFah5oASs/9gEHTmYj7GJW8Iw1q55kLgz7aqTJnS40p/Jpb6IK+D3dCu6Onk3yn66+8NCtbRBNqQ+yYWOuSYmPb03T7p0V4QZ5GEYFQ7skRsh+a6XCG0hbQ3SFEHrfbKY4Q==
signature_date    : 2024-05-21T15:00:09.413760
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 *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
config_dir = makepath(programfiles, "Mattermost", "config")
bin_contains = "mattermost-desktop"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.msi" % bin_contains)[0]

    install_msi_if_needed(bin_name, min_version=package_version)

    mkdirs(config_dir)
    if isfile("config.json"):
        filecopyto("config.json", config_dir)
    remove_desktop_shortcut("Mattermost")


def session_setup():
    # Declaring local variables
    install_appdata = makepath(user_local_appdata(), "Programs", "mattermost-desktop")

    # Copy Config
    if isfile(makepath(config_dir, "config.json")):
        config_user = makepath(user_appdata, "Mattermost")
        mkdirs(config_user)
        filecopyto(makepath(config_dir, "config.json"), config_user)

    # Remove AppData Installation
    if isdir(install_appdata):
        killalltasks("Mattermost.exe")
        try:
            cmd_uninstall_appdata = '"' + makepath(install_appdata, 'Uninstall Mattermost.exe" /currentuser /S')
            run(cmd_uninstall_appdata)
        except:
            print("Not installed in this User AppData, cleaning")
        remove_tree(install_appdata)
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import json


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    bin_end = ".msi"
    bin_contains = "mattermost-desktop"

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/mattermost/desktop/releases/latest"
    if control.architecture == "x64":
        arch_contains = "x64%s" % bin_end
    else:
        arch_contains = "x86%s" % bin_end
    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if bin_contains in download["name"] and arch_contains in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    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)

    # 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)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result
98cd67ca367cce7302b2f55d2b062fcf2e584077915112be27e34f223e4eeb31 : setup.py
 : __pycache__
3f34e6273568ed69d0cfdc29969d7f683f893c20df480fa37f7c845b423037da : update_package.py
c84eb3d1fa0d45a85088f2acc3923f94f2405800d74414167d2b4f47cf853f55 : mattermost-desktop-5.8.0-x86.msi
4307a126541db80e738ed7d47f927fa749dcc2a87b03decb54dfacb32a8e0bc6 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7fce3602d9967f275d354d3df288563f8a0ff1cebdcb77778e4f9f88a23b6a25 : WAPT/changelog.txt
5bf7528316e4b039e8b446fd6672889d34cc3de651e06efa1af0e20bd5bd0343 : luti.json
081baece59c0a21b918b16555f43da56013124763c916512507aa2db409d2102 : WAPT/control
5.5.1-2
===
now uninstall user installation


5.1.1-1
===
improve conce
slipt update package