tis-rocketchat icon

Rocket.Chat

Silent install package for Rocket.Chat

3.8.15-18

  • package: tis-rocketchat
  • name: Rocket.Chat
  • version: 3.8.15-18
  • categories: Messaging
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Team Rocket.Chat
  • licence: MIT
  • locale: all
  • target_os: debian,ubuntu
  • impacted_process: Rocket.Chat
  • architecture: all
  • signature_date:
  • size: 69.89 Mo
  • homepage : https://rocket.chat/

package           : tis-rocketchat
version           : 3.8.15-18
architecture      : all
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         : debian,ubuntu
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      : 34a508d7-6539-4508-88f5-844df40216aa
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         : x4S0J3rBq/dwb8TqCTv2jElOL+CNmTo6kB55bnsG+nMxh02DAgYHdYAVz/dbxeVOteBjrsd9qAQZGHlcRt41B3Fo5dXTELB96oklSRpKYV+xh2mWvpU1P9175GKouJB/YFsHtbIUVZ7RcBewj/bsXG8OPJ8WijLqKXW4NkiIl6VycfWEUmaxxfAJF56wBX0LbKxjRk9u3G2MfusSvMCR7x+ViOTvkNVVjRnoj7ZpK5nJY7rMqArP7x60Mrlk/IpY5jtndHsBQXDxtmdKGFcju95CccbfCHEEY47bTJgxMuxrJrLoi5gPg0cpOen2oDg8swqBu8KjWI2dEoOWKUB1bw==
signature_date    : 2023-01-05T21:14:01.066628
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 specific app values (TO CHANGE)
package_name = "rocketchat"


def install():
    # Specific app values
    install_deb(glob.glob("*.deb")[0])


def uninstall():
    # Uninstalling the package
    print("Uninstalling: %s" % package_name)
    uninstall_apt(package_name)

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

# Declaring specific app values (TO CHANGE)
package_name = "rocketchat"


def update_package():
    print("Download/Update package content from upstream binary sources")

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system() == "Windows" and isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxy = {"http": proxywapt, "https": proxywapt}

    # Specific app values
    app_name = control.name
    git_repo = "RocketChat/Rocket.Chat.Electron"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo

    # Getting latest informations from Github API
    json_load = json.loads(wgets(url_api, proxies=proxy))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith("-linux-amd64.deb"):
            url_dl_deb = download["browser_download_url"]
            break

    version = json_load["tag_name"]

    latest_bin_deb = url_dl_deb.split("/")[-1]

    print("Latest " + app_name + " version is: " + version)
    print("Download url for APT-based systems is: " + url_dl_deb)

    # Downloading latest binaries
    if not isfile(latest_bin_deb):
        print("Downloading: " + latest_bin_deb)
        wget(url_dl_deb, latest_bin_deb, proxies=proxy)

        # Changing version of the package
        control.version = "%s-%s" % (version, int(control.version.split("-", 1)[1]) + 1)
        control.save_control_to_wapt()
        print("Changing version to " + control.version + " in WAPT\\control")
    else:
        print("This package is already up-to-date")

    # Deleting outdated binaries
    for bin_in_dir in glob.glob("*.deb"):
        if bin_in_dir != latest_bin_deb:
            print("Outdated binary: " + bin_in_dir + " Deleted")
            remove_file(bin_in_dir)

c75c3526147584ca3d0c30f3a7da0fbca79d2ba5d4e0129ba2b2c4db3e3aca0b : setup.py
d25d2a52f34aa9746fa89f95db5d96e55271b466f9848f74337ed68eab6183db : rocketchat-3.8.15-linux-amd64.deb
1556616badc3ce748974f1c29cb46b95f76cdc66497dbdc7e1d835c437dd854c : update_package.py
b8127266889154a1af4f52b3add4e58cbb948d26621a60a81a5ce52243b4ed21 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7b13e2e924264a96548e1a44a2bf89ae10576c3f4028b62ac9389672771ead53 : luti.json
11572d20c43b8e10696e51fcee1b311c95b479d62cd42e675fc1ec5b22180830 : WAPT/control