tis-rocketchat
3.7.1-15
Rocket.Chat permit to communicate and collaborate with your team, share files, chat in real time or switch to video/audio conferencing.
24177 downloads
See build result See VirusTotal scan

Description
- package : tis-rocketchat
- name : Rocket.Chat
- version : 3.7.1-15
- categories : Messaging
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
- installed_size :
- editor : Team Rocket.Chat
- licence : MIT
- signature_date : 2021-12-21T14:14:18.800533
- size : 132.77 Mo
- locale : all
- target_os : windows
- impacted_process : Rocket.Chat
- architecture : all
- Homepage : https://rocket.chat/
control
package : tis-rocketchat
version : 3.7.1-15
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 : windows
min_wapt_version : 1.7
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 :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
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 : 13034570-98ea-4149-b598-052783aae12a
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 : WkGpxbEsZByCoBTewPjrs4HbqoItaWDMw5YCVzh39rzXNOnZIUwc/SfibA8/xjH2qUxXMV+RyJPf6LggbYwEUQFSqsqn/nrZnbcmkXNteBa3dkks1kT7/4oivcgw8nMO5gABk7rxWBrpIYuZj52cfrYna0ExrTy+CT8HVesiRhjif1CiWU65WG3fAuC/1HNjmHWjmRN1vwBJP47tEIzPuJACKBkeXaWOr3ukcgPqANZ16kHOXd+wzO4yaVj9RNJEW9aWUFnbcc8/eeyWS+jdgiHtE+SMZb7eLzlTtjh03z9ftDzxqmUMIoenF9u+tsY7njNcH7VxNNLyGCGD1K0fLg==
signature_date : 2021-12-21T14:14:18.800533
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
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
import platform
uninstallkey = []
# Defining variables
bin_name_string = 'rocketchat-setup-%s.exe'
uninstallkey_app = '9b73a9fb-f1d5-59ee-b41e-e1dd393a748a'
silent_args = '/S /allusers /disableAutoUpdates'
dics_dir = 'dictionaries'
dictionaries_dir = makepath(programfiles,'Rocket.Chat','resources','dictionaries')
spell_checker_list = ('en','fr','pl','de','es','pt','it','nl','ru')
def install():
# Initializing variables
package_version = control.version.split('-',1)[0]
bin_name = bin_name_string % package_version
# Installing the package
print('Installing: %s' % bin_name)
install_exe_if_needed(bin_name,
silentflags=silent_args,
key=uninstallkey_app,
min_version=package_version)
# Copying RC Dictionaries
if isdir(dictionaries_dir):
remove_tree(dictionaries_dir)
mkdirs(dictionaries_dir)
for copy_dic in glob.glob(makepath(dics_dir,'*')):
filecopyto(copy_dic,dictionaries_dir)
# Deleting desktop shortcut
remove_desktop_shortcut('Rocket.Chat')
def session_setup():
print("Disabling: auto-update-check")
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
if not isdir(user_config_dir):
mkdirs(user_config_dir)
if isfile(user_config_json_path):
data = json_load(user_config_json_path)
data.update(user_config_json_content)
else:
data = user_config_json_content
json_write(user_config_json_path,data)
print("Copying: Spell Check Dictionaries")
user_dictionaries_dir = makepath(user_appdata,'Rocket.Chat','Dictionaries')
if not isdir(user_dictionaries_dir):
mkdirs(user_dictionaries_dir)
for copy_dic in glob.glob(makepath(dictionaries_dir,'*')):
bdic_file_name = copy_dic.split('\\')[-1]
if not isfile(makepath(user_dictionaries_dir, bdic_file_name)):
filecopyto(copy_dic, makepath(user_dictionaries_dir, bdic_file_name))
def update_package():
# Initializing variables
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
url_api = 'https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/releases/latest'
bin_end = bin_name_string.split('%s')[-1]
# Getting latest informations from Github API
json_load = json.loads(wgets(url_api,proxies=proxies))
for download in json_load['assets']:
if download['browser_download_url'].endswith(bin_end):
url_dl = download['browser_download_url']
break
version = (url_dl.split('-')[-1]).replace(bin_end,'')
latest_bin = bin_name_string % version
print('Latest ' + app_name + ' version is: ' + version)
print('Download url is: ' + url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxies)
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
if version != version_from_file:
os.rename(latest_bin,bin_name_string % version_from_file)
version = version_from_file
# Changing version of the package
control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print('Changing package version to: %s in WAPT\\control' % control.version)
# Deleting outdated binaries
remove_outdated_binaries(version)
# Downloading electron dictionaries from Google repo
gitexe = makepath(programfiles,'Git','bin','git.exe')
url_git_dics = 'https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries'
git_dir = url_git_dics.split('/')[-1]
if isdir(git_dir):
remove_tree(git_dir)
if isdir(dics_dir):
remove_tree(dics_dir)
mkdirs(dics_dir)
run('"%s" config --global http.sslVerify false' % gitexe)
if proxies:
try:
run('"%s" config --global http.proxy %s' % (gitexe,proxies['http']))
run('"%s" config --global http.proxy %s' % (gitexe,proxies['https']))
except:
print("Continuing: Unable to configure the git proxy")
run('"%s" clone %s' % (gitexe,url_git_dics))
for bdic_file in glob.glob(makepath(git_dir,'*.bdic')):
bdic_file_name = bdic_file.split('\\')[-1]
for lang in spell_checker_list:
if lang in bdic_file_name:
filecopyto(bdic_file, makepath(dics_dir, bdic_file_name))
remove_tree(git_dir)
def get_proxies():
if platform.python_version_tuple()[0] == '3':
from urllib.request import getproxies
else:
from urllib import getproxies
return getproxies()
def get_proxies_from_wapt_console():
proxies = {}
if platform.system() == 'Windows':
waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
else:
waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
if isfile(waptconsole_ini_path):
proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
if proxy_wapt:
proxies = {'http': proxy_wapt, 'https': proxy_wapt}
return proxies
def get_version_from_binary(filename):
if filename.endswith('.msi'):
return get_msi_properties(filename)['ProductVersion']
else:
return get_file_properties(filename)['ProductVersion']
def remove_outdated_binaries(version,list_filename_contain=('x64','x86','win32','win64','32','64'),list_extensions=('exe','msi','deb','rpm','dmg','pkg')):
for file_ext in list_extensions:
for bin_in_dir in glob.glob('*.%s' % file_ext):
if not version in bin_in_dir:
for filename_contain in list_filename_contain:
if not filename_contain in bin_in_dir:
print('Outdated binary: %s Removed' % bin_in_dir)
remove_file(bin_in_dir)
def bs_find_all(url, element, attribute=None, value=None, headers=None, proxies=None, features='html.parser', **kwargs):
""""You may need to use a header for some websites. For example: headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}
"""
import requests
page = requests.get(url, proxies=proxies, headers=headers, **kwargs).text
try:
import bs4 as BeautifulSoup
soup = BeautifulSoup.BeautifulSoup(page, features=features)
except:
import BeautifulSoup
soup = BeautifulSoup.BeautifulSoup(page)
if value:
return soup.findAll(element,{attribute:value})
else:
return soup.findAll(element)
def json_load(json_file):
with open(json_file) as read_file:
data = json.load(read_file)
return data
def json_write(json_file,data,sort_keys=True, indent=4):
import codecs
with codecs.open(json_file, 'w', encoding='utf-8') as write_file:
json.dump(data, write_file, sort_keys=sort_keys, indent=indent)
0a07cacd9de2a57baaa30739d29c3d5ea0f1960ecf0c43c4a9212adf4131b70b : setup.py
280d2824eeb29c6b1d6e1ba46a7b4908b2e4675494a202be94cbf217eedb1bb7 : rocketchat-setup-3.7.1.exe
b8127266889154a1af4f52b3add4e58cbb948d26621a60a81a5ce52243b4ed21 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
6b2850f5a54994a5204a9a88d4b586e9d4e028a0360b67352b04cffdb2a3e0ea : dictionaries/pt-BR-3-0.bdic
da2957237ec6745bf6c8484e456814089a4f302168e409dd3348841508d0aaa7 : dictionaries/en-AU-9-0.bdic
e6334dcf080aaeca679db70565762a2c296ff5780c1af263530ac7345736bfa9 : dictionaries/es-ES-3-0.bdic
0d6803758ff8f87081fafd62e90f0950dfb2dd7991e9607fe76a8f92d0e893fa : dictionaries/en-US-9-0.bdic
a04c51759b6e54f01e628dfc6354ca88a0711d8bcefa6a8c0e8baa04156fb92e : dictionaries/pl-PL-3-0.bdic
076a470700dbd0aa62bb8b3d24c34e1340bdfe83cbbcfc035ce972f23c140400 : dictionaries/de-DE-3-0.bdic
a6dfc3332b15a6cdf06be3f28024f22e40e0467cf0400f8ce9c43cf1af2c3f40 : dictionaries/pt-PT-3-0.bdic
73c79a410f80920c29b055f7ba907d93403b05a8c17d00e8e7054edb62f731ac : dictionaries/en-GB-9-0.bdic
8b83a0d4bba4cfcd4a4e7ee89b703014a00a5c08e721e568a5c552a732827fff : dictionaries/it-IT-3-0.bdic
43eea1bd8149c1a24f4388ade6a261a981ca2e786e7df12e606295a8024b150e : dictionaries/nl-NL-3-0.bdic
6cffc13b549c33d44180a3a7b13943fe0eadfbe80bcdbccc76f67c55c2012968 : dictionaries/fr-FR-3-0.bdic
1cf5c01417c59d997b75a7980685b739ee9999a85ccbab3104ca70c785a86202 : dictionaries/en-CA-9-0.bdic
2683a63ce30a38d34eff0f97b0e17a7c37083837be3cd7c8716c759f5d17c564 : dictionaries/en-GB-oxendict-9-0.bdic
92dcc64fb0b0c065b443abf9de6fb58116b2a64c49427d3715fa7536ad1c53b8 : dictionaries/ru-RU-3-0.bdic
ea1513edd6dc5dbed5b48eb57fbeadd7e4d1fa7824958979279e17ae7532d642 : luti.json
00d99aa0c2462399c5bbb5bc1e322410e938cb56b93422c5a2eae66cca9c95da : WAPT/control