tis-anydesk

6.0.8-1
Connect to a computer remotely
81 downloads
Download

  Description 

  • package : tis-anydesk
  • version : 6.0.8-1
  • architecture : all
  • categories :
  • maintainer : Bertrand Lemoigne
  • description : Connect to a computer remotely
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources : https://anydesk.com/fr/downloads
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-10-13T18:22:24.249959
  • Homepage : https://anydesk.com

  Setup.py 

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

uninstallkey = []

def install():
    install_msi_if_needed('AnyDesk.msi')

def uninstall():
    pass
    # put here what to do when package is removed from host
    # implicit context variables are WAPT, control, user, params, run

def session_setup():
    print('Session setup for %s' % control.asrequirement())
    # put here what to do when package is configured inside a user session
    # implicit context variables are WAPT, control, user, params

def update_package():
    print('Update package content from upstream binary sources')
    from waptpackage import PackageEntry

    # Get Proxy informations from WAPT settings
    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}

    html_source = wgets("https://anydesk.com/fr/downloads",proxies=proxies).splitlines()
    for line in html_source:
        if "download-info" in line:
            firstsplit = line.split(" ")[3]
            newversion = firstsplit.split("v")[1]
    print(newversion)

    oldversion = control.version.split("-")[0]
    if not isfile("AnyDesk.msi"):
        wget("https://download.anydesk.com/AnyDesk.msi" , "AnyDesk.msi", proxies=proxies)
    elif newversion != oldversion:
        remove_file("AnyDesk.msi")
        wget("https://download.anydesk.com/AnyDesk.msi" , "AnyDesk.msi", proxies=proxies)
        print ('Write ' + newversion + '-0 in WAPT\\control')
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())
        pe.version = newversion +'-0'
        pe.save_control_to_wapt(os.getcwd())

        print('The update is complete, you can now test and then launch a build upload.')








    # put here what to do to update package content with newer installers.
    # launched with command wapt-get update-package-sources <path-to-wapt-directory>
    # implicit context variables are WAPT, basedir, control, user, params, run
    # if attributes in control are changed, they should be explicitly saved to package file with control.save_control_to_wapt()

def audit():
    pass
    # put here code to check periodically that state is matching expectations
    # return "OK", "WARNING" or "ERROR" to report status in console.
    # all print statement are reported too
    return "OK"
										

  Changelog 


No changelog
  manifest.sha256 
[["AnyDesk.msi","121c70c9a762a6fd2ae806b94cd9f059a88836902dcb560c45602868a64c756e"],["setup.py","397a7fac898c28b765f2007d8a79c6c51896c21804953966981f2133fd0274f5"],["WAPT/icon.png","61e27edac9e3eeb15cdea6114a0bc2f09a150e39add65fde398c03cd322aab0e"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","0fb44499fd8cbc78d95b7319d422299e421e37aa9f3efa87739fc8991c562663"]]