tis-rocketchat icon

Rocket.Chat

Paquet d’installation silencieuse pour Rocket.Chat

4.6.0-17

  • package: tis-rocketchat
  • name: Rocket.Chat
  • version: 4.6.0-17
  • categories: Messaging
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Team Rocket.Chat
  • licence: MIT
  • locale: all
  • target_os: windows
  • impacted_process: Rocket.Chat
  • architecture: x86
  • signature_date:
  • size: 269.15 Mo
  • homepage : https://rocket.chat/

package           : tis-rocketchat
version           : 4.6.0-17
architecture      : x86
section           : base
priority          : optional
name              : Rocket.Chat
categories        : Messaging
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Rocket.Chat permit to communicate and collaborate with your team, share files, chat in real time or switch to video/audio conferencing
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/RocketChat/Rocket.Chat/releases
installed_size    : 
impacted_process  : Rocket.Chat
description_fr    : Rocket.Chat permet de communiquer et collaborer avec votre équipe, partager des fichiers, chatter en temps réel ou passer en conférence audio/vidéo
description_pl    : Rocket
description_de    : Rocket
description_es    : Rocket
description_pt    : Rocket
description_it    : Rocket.Chat permette di comunicare e collaborare con il team, condividere file, chattare in tempo reale o passare a videoconferenze/audioconferenze
description_nl    : Rocket
description_ru    : Rocket
audit_schedule    : 
editor            : Team Rocket.Chat
keywords          : chat,messaging,rocketchat,rocket,communicate,collaborate,share,team,file,conferencing
licence           : MIT
homepage          : https://rocket.chat/
package_uuid      : 7b869c39-5526-4725-995d-4f25822c9af7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/RocketChat/Rocket.Chat.Electron/releases/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : b8127266889154a1af4f52b3add4e58cbb948d26621a60a81a5ce52243b4ed21
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-21T23:17:02.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         : fNBT1XiUUyaVEYlX0GxaACgRqHha3Fal+eWGLK/Sou4XluZ6Cnd45w3TQ/PorE3HisM4CaH2ZfNBybfrn8qzNIxdbmfZ/NwSzzk06ezkJ74WURFwZLznBaZbZNQw6kkb1DqIhaEjaHXmMpOWEvjmRam7NwF12qaXQ049a8hgIeMv1WFT5OFk/2GkA/CuzSeaJV5d5swQ+mHxci8nUlLkc9b9VM9E5fnSOAzy7Nfc0fd7Wbz+yTjAhSuQJJyQrS4if2vamlfw7SPyklRhcaOhdMDofyDGpjfB10l2xwU+B9qYBm3QHfKj+iYX0ka3+8WpCaiVF0BoOMjIh6MrKnjRJg==

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


# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
silentflags = "/S /allusers /disableAutoUpdates"


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

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(
        bin_name,
        silentflags=silentflags,
        key="9b73a9fb-f1d5-59ee-b41e-e1dd393a748a",
        min_version=package_version,
    )

    if params.get("remove_desktop_shortcut"):
        remove_desktop_shortcut(control.name)


def session_setup():
    # Declaring local variables
    user_config_json = "config.json"
    user_config_dir = makepath(user_appdata, "Rocket.Chat")
    user_config_json_path = makepath(user_config_dir, user_config_json)
    user_config_json_content = json.loads(
        '{"doCheckForUpdatesOnStartup": false,"isEachUpdatesSettingConfigurable": false,"isUpdatingEnabled": false,"isTrayIconEnabled": true}'
    )

    # Writting configuration file
    print("Disabling: auto-update-check")
    if not isdir(user_config_dir):
        mkdirs(user_config_dir)
    if isfile(user_config_json_path):
        data = json_load_file(user_config_json_path)
        data.update(user_config_json_content)
    else:
        data = user_config_json_content
    json_write_file(user_config_json_path, data)

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


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/releases/latest"

    # 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 download["name"].endswith("-win.exe") and not "x64" in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"]
            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)

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

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        # if not version_from_file.startswith(version) and version_from_file != '':
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary")
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # 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()

    # Validating update-package-sources
    return result

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
df5b95e116b505df6ec4144d6ac497768f7c3131613aa28ae87ec8f9f5914aa2 : WAPT/control
b8127266889154a1af4f52b3add4e58cbb948d26621a60a81a5ce52243b4ed21 : WAPT/icon.png
f9ba56c434218ebe239408e53f7cf476d4834283b8e311b7d745f1f50012703d : luti.json
692a5d4247456b08f3bd2fe8eb8442de2682d9fd7d8ae84e5b59246903f1c698 : rocketchat-4.6.0-win.exe
ef93ea67cce4076fc57a4bf12ed7359db4e79274abe677c17204bd6d879c81d2 : setup.py
6111af46e2332805362b49403cec49c22d928c87c8390666a3fb81a2d003e7cd : update_package.py