tis-teamviewer

15.17.7-6
TeamViewer is a free software that allows you to share your computer directly with anyone around the world
107582 downloads
Download
default icon

  Description 

  • package : tis-teamviewer
  • version : 15.17.7-6
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT
  • description : TeamViewer is a free software that allows you to share your computer directly with anyone around the world
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources :
  • installed_size : 115748864
  • impacted_process : teamviewer
  • description_fr : TeamViewer est un logiciel gratuit permettant de partager directement son ordinateur avec n'importe qui à travers le monde.
  • description_pl : TeamViewer to darmowe oprogramowanie, które pozwala udostępniać komputer bezpośrednio każdemu na całym świecie.
  • description_de : TeamViewer ist eine kostenlose Software, mit der Sie Ihren Computer direkt mit anderen auf der ganzen Welt teilen können.
  • description_es : TeamViewer es un software gratuito que le permite compartir su computadora directamente con cualquier persona en todo el mundo.
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : TeamViewer
  • licence : Proprietary
  • signature_date : 2021-05-11T17:22:50.383430
  • Homepage : https://www.teamviewer.com

  Setup.py 

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

# Defining variables
bin_contains = 'TeamViewer_Setup'
silent_args = '/S'
app_uninstallkey = ''


def install():
    # Initializing variables
    package_version = control.get_software_version()
    bin_name = glob.glob('*%s*' % bin_contains)[0]

    # Installing the package
    print("Installing: %s" % bin_name)
    install_exe_if_needed(bin_name,
        silentflags=silent_args,
        key=app_uninstallkey,
        min_version=package_version,
    )

def update_package():
    # Initializing variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
       # Specific app values
    url = 'https://www.teamviewer.com/en/download/windows/'

   # Getting latest version from official website
    for elem in bs_find_all(url,'p',proxies=proxies):
        if 'Current version' in elem.text:
            version = elem.text.split(' ')[-1]
    if version > control.get_software_version():
        page = wgets('https://www.teamviewer.com/en-us/download/windows/',proxies=proxies)
        for line in page.splitlines() :
            if 'TeamViewer_Setup.exe' in line :
                exe = line[line.find('https'):line.find('.exe')]+'.exe'
                print("Downloading {}".format(exe))
                wget(exe,'TeamViewer_Setup.exe',proxies=proxies)
                break

        # Changing version of the package
        control.version = '%s-%s' % (version, control.version.split('-', 1)[-1])
        control.save_control_to_wapt()
        result = True
    else:
        print('Already Updated')

    return result


def get_proxies():
    import platform
    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 remove_outdated_binaries(version, list_extensions=['exe','msi','deb','rpm','dmg','pkg','zip'], list_filename_contain=None):
    if type(list_extensions) != list:
        list_extensions = [list_extensions]
    if list_filename_contain:
        if type(list_filename_contain) != list:
            list_filename_contain = [list_filename_contain]
    list_extensions = ['.' + ext for ext in list_extensions if ext[0] != '.']
    for file_ext in list_extensions:
        for bin_in_dir in glob.glob('*%s' % file_ext):
            if not version in bin_in_dir:
                remove_file(bin_in_dir)
            if list_filename_contain:
                for filename_contain in list_filename_contain:
                    if not filename_contain in 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'}
    """
    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)

										

  Changelog 



Changelog software url : https://community.teamviewer.com/t5/Change-Logs-EN/bd-p/Change_Logs_EN



No changelog.txt.
									
  manifest.sha256