tis-microsoft-teams

1.3.0.30857-3
System-Wide installation - Microsoft Teams, also referred to as simply Teams, is a unified communication and collaboration platform that combines persistent workplace chat, video meetings, file storage (including collaboration on files)
11473 downloads
Download

  Description 

  • package : tis-microsoft-teams
  • version : 1.3.0.30857-3
  • architecture : x64
  • categories : Media,Messaging,Office
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : System-Wide installation - Microsoft Teams, also referred to as simply Teams, is a unified communication and collaboration platform that combines persistent workplace chat, video meetings, file storage (including collaboration on files)
  • locale : all
  • target_os : linux
  • min_wapt_version : 1.8.2
  • sources :
  • installed_size :
  • impacted_process : Teams
  • description_fr : Microsoft Teams, aussi simplement appelé Teams, est une plate-forme de communication et de collaboration unifiée qui combine le chat, les réunions vidéo, le stockage de fichiers (comprend la collaboration sur les fichiers)
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Microsoft
  • licence : Proprietary
  • signature_date : 2021-01-07T17:44:30.906775
  • Homepage : https://www.microsoft.com/microsoft-365/microsoft-teams/group-chat-software

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
import shutil

uninstallkey = []

link_deb = 'https://go.microsoft.com/fwlink/p/?LinkID=2112886&clcid=0x40c&culture=fr-fr&country=FR'
link_rpm = 'https://go.microsoft.com/fwlink/p/?LinkID=2112907&clcid=0x40c&culture=fr-fr&country=FR'

list_binnary = [link_rpm,link_deb]

def install():
    isapt = True
    try:
        run('apt-get --version')
    except:
        isapt = False

    if isapt :
        run('apt-get install ./%s -y' % glob.glob('*.deb')[0])
        if isfile('/etc/apt/sources.list.d/teams.list'):
            remove_file('/etc/apt/sources.list.d/teams.list')
    else:
        run('yum install ./%s -y' % glob.glob('*.rpm')[0])

def uninstall():
    isapt = True
    try:
        run('apt-get --version')
    except:
        isapt = False

    if isapt :
        run('apt-get remove teams -y')
    else:
        run('yum remove teams -y')


def update_package():
    import urllib
    import os
    proxies = {}
    if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}
            os.environ['http_proxy'] = proxywapt
            os.environ['https_proxy'] = proxywapt

    for url in list_binnary:

        response = urllib.request.urlopen(url)
        u = response.geturl()
        filename = u.split('/')[-1]

        if not isfile(filename):
            wget(u,filename,proxies=proxies)

        ext = filename.split('.')[-1]
        for b in glob.glob('*.%s' % ext):
            if b != filename:
                remove_file(b)

        version_bin = filename.split('_')[1].split('-')[0]
        control.version = '%s-2' % (version_bin)
        control.save_control_to_wapt()

										
  manifest.sha256