tis-rocketchat icon

Rocket.Chat

Silent install package for 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: x64
  • signature_date:
  • size: 89.97 Mo
  • homepage : https://rocket.chat/

package           : tis-rocketchat
version           : 4.6.0-17
architecture      : x64
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      : 0710ee10-8999-43df-9066-6db6964314ca
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:01:57.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         : fU4hVYihvYRlTdEb/2MsDv/EMnmuQZL9zBYmvcVrdFz1YW87ZQPUqMEAmnGP9r8di1QayBTuD3oxG2RMDj4Jn0DqV9M435juqRnXuAJHUm0kYBG/QU5gdYvg2fxDdhebhurYl7c2SdO81I7QEAubhXw0LHDTFjkDqeiDkpinFy4fvQ+Fj9FCbSMTzp2FEr8PVSoGn3/Wx24GB8ZFCHJ6txob8QxG3voGe9RwuhaNQWDdGtkNCjjIl9TSQh9VVYBbd06udXsRGFm9fMYeiOfyB0JnHOYKC/iJ50DO0H4HVRcAJQqY8TqkxO92Rs+/ibLLJ3ZZeKSsf5RLRhRMZbTKDg==

# -*- 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"
app_uninstallkey = "9b73a9fb-f1d5-59ee-b41e-e1dd393a748a"


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=app_uninstallkey,
        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("x64.exe"):
            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
76863feb6d49d735575f6628266187e2ba99d60c24055ff5a7e354313f0801d3 : WAPT/control
b8127266889154a1af4f52b3add4e58cbb948d26621a60a81a5ce52243b4ed21 : WAPT/icon.png
33c6bec42067c02fc20882c64f3eb0abfc1f9df7158ed26633b62ccd2714ac5e : luti.json
57a15aa6b41fa4a015c06746d14374829c721b4a47037d0cd608964cebf03077 : rocketchat-4.6.0-win-x64.exe
4fac9fd2b5166d7ea6a237be3f336ceb5cf2416091e906c883ff048bebc1b237 : setup.py
89161de18999174e3f54e8ea85b587518eadba8d5082cc3c87bc72ccce762ad1 : update_package.py