tis-rocketchat

2.17.9-5
Rocket.Chat permit to communicate and collaborate with your team, share files, chat in real time or switch to video/audio conferencing.
8006 downloads
Download

  Description 

  • package : tis-rocketchat
  • version : 2.17.9-5
  • architecture : all
  • 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.
  • locale : all
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • 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 :
  • editor : Team Rocket.Chat
  • licence : MIT
  • signature_date : 2020-06-18T16:47:34.664000
  • Homepage : https://rocket.chat/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'rocketchat-setup-%s.exe'
uninstallkey_app = '9b73a9fb-f1d5-59ee-b41e-e1dd393a748a'
silent_args = '/S /allusers /disableAutoUpdates'
dics = 'dictionaries'
dictionaries_dir = makepath(programfiles,'Rocket.Chat','resources','dictionaries')


def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]

    # Installing the package
    install_exe_if_needed(bin_name_string % package_version
        ,silentflags=silent_args
        ,key=uninstallkey_app
        ,min_version=package_version)

    # Adding language Dictionaries
    for copy_dics in glob.glob(makepath(dics,'*')):
        filecopyto(copy_dics,dictionaries_dir)

    # Deleting desktop shortcut
    remove_desktop_shortcut('Rocket.Chat')


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
    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=proxy))
    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=proxy)

        # Checking version from file
        version_from_file = get_file_properties(latest_bin)['ProductVersion']
        if version != version_from_file and version_from_file != '':
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % version
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin,latest_bin)

		# Changing version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # Downloading dictionaries
    # FR
    dic_fr = 'fr_FR.dic'
    aff_fr = 'fr_FR.aff'
    # Most recent alternative: https://grammalecte.net/download.php?prj=fr
    url_dl_dic_fr = 'https://raw.githubusercontent.com/LibreOffice/dictionaries/master/fr_FR/fr.aff'
    url_dl_aff_fr = 'https://raw.githubusercontent.com/LibreOffice/dictionaries/master/fr_FR/fr.dic'
    latest_dic_fr = r'%s\%s' % (dics,dic_fr)
    latest_aff_fr = r'%s\%s' % (dics,aff_fr)
    if not isfile(latest_dic_fr):
        print('Downloading: ' + latest_dic_fr)
        wget(url_dl_dic_fr,latest_dic_fr,proxies=proxy)
    if not isfile(latest_aff_fr):
        print('Downloading: ' + latest_aff_fr)
        wget(url_dl_aff_fr,latest_aff_fr,proxies=proxy)

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)




										

  Changelog 


Changelog software url : https://github.com/RocketChat/Rocket.Chat.Electron/releases/

No changelog
  manifest.sha256 
[["WAPT/icon.png","b8127266889154a1af4f52b3add4e58cbb948d26621a60a81a5ce52243b4ed21"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","39d59e4b264b47219b507096ff5a17a34388b6f42d62fc2b5daf6710d6dc9aa8"],["dictionaries/fr_FR.dic","ee1188b74b3de571f6fa2e5e177da1bdafdd9b93edc7a405fa675817bfcf9a64"],["rocketchat-setup-2.17.9.exe","6a3237d698649957727888642641ebdf42983cbdab36f36580c337f6951622d3"],["dictionaries/fr_FR.aff","865044d2845cb7c8ad83bec09db646275b640ae3997f7d68b5bc7a9874247ac0"],["setup.py","a16726e64fc541fc7f0246ef2f2df2c34f1fa4b31d8693b5d4936f465f981036"],["WAPT/control","d1b60fd061647858ec98feb01eea85f2765314bbb0260045062907c06ddeb0e0"]]