tis-putty

0.73-3
PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.
7183 downloads
Download

  Description 

  • package : tis-putty
  • version : 0.73-3
  • architecture : x64
  • categories : Network and system
  • maintainer : Tranquil IT,Kevin Guerineau,Jimmy PELÉ
  • description : PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.
  • locale : all
  • target_os : windows
  • min_os_version : 5.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://store.wapt.fr/store/tis-putty
  • installed_size : 7233536
  • impacted_process : putty.exe
  • description_fr : PuTTY est un émulateur de terminal doublé d'un client pour les protocoles SSH, Telnet, rlogin, et TCP brut.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Simon Tatham
  • licence : MIT
  • signature_date : 2020-02-27T21:39:54.715478
  • Homepage : https://www.chiark.greenend.org.uk/~sgtatham/putty/

  Setup.py 

# -*- coding: utf-8 -*-

from setuphelpers import *
import winshell,time,os

uninstallkey=[]

# Declaring specific app values (TO CHANGE)
bin_name_string = 'putty-64bit-%s-installer.msi'
url_dd = 'https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-%s-installer.msi'


def remove_putty_if_install_with_exe():
    if uninstall_key_exists('PuTTY_is1'):
        killalltasks('putty.exe')
        #uninstaller cannot be silenced by design (cf putty.iss), so we remove stuff by hand
        #run('"%s" /VERYSILENT /SUPPRESSMSGBOXES' % os.path.join(programfiles32,'putty','unins000.exe'))
        if isdir(install_location('PuTTY_is1')):
            remove_tree(install_location('PuTTY_is1'))
        registry_delete(HKEY_LOCAL_MACHINE,'SOFTWARE\\Classes\\PuTTYPrivateKey',None)
        if iswin64():
            registry_delete(HKEY_LOCAL_MACHINE,'SOFTWARE\\Wow6432Node\\Microsoft\\Windows\CurrentVersion\\Uninstall\\PuTTY_is1',None)
        else:
            registry_delete(HKEY_LOCAL_MACHINE,'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\PuTTY_is1',None)
        putty_link = makepath(winshell.programs(common=1),'PuTTY')
        if isdir(putty_link):
            remove_tree(putty_link)
        unregister_uninstall('Putty_is1')


def install():
    print('installing %s' % control.asrequirement())

	# Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    remove_putty_if_install_with_exe()

    # Specific app values
    #package_version = control.get_software_version() # Do not use for now
    package_version = control.version.split('-',1)[0]

    install_msi_if_needed(bin_name_string % package_version,min_version=package_version)

	# Return used storage of the installation. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print ("Storage used: " + str(free_space_after_diff))


def uninstall():
    print('uninstalling %s' % control.asrequirement())
    remove_putty_if_install_with_exe()


def update_package():
    print('Update package content from upstream binary sources')
    import urllib2,requests

    # Get Proxy informations from WAPT settings
    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    sock = urllib2.urlopen("http://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html",timeout=10)
    htmlSource = sock.readlines()
    sock.close()
    for line in htmlSource :
        if '<a href="releases/' in line :
            start = line.find("releases")
            end = line.find('.html')
            realversion = line[start + 9 :end]
            break


    if not isfile(bin_name_string % realversion):
        wget(url_dd % realversion,bin_name_string % realversion,proxies=proxies)

    versputty = get_msi_properties(bin_name_string % realversion)['ProductVersion']

    # Deleting outdated binaries
    for actual_bin in glob.glob('*.msi'):
        if actual_bin != bin_name_string % realversion :
            print('Outdated binary: ' + actual_bin + ' Deleted')
            remove_file(actual_bin)
    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = realversion + '-0'
    pe.save_control_to_wapt(os.getcwd())

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

if __name__ == "__main__" :
    update_package()

										

  Changelog 


https://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html
  manifest.sha256 
[["WAPT/icon.png","11fe77671fd02e8f58809a2ab1edd6d6801233b5597015ff7452d69b21ab6acb"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["setup.py","e5e24d432794ca71ec9ad4099eee5ebe060b1d1a3f4d5408dfaba1e6eb5deeaf"],["WAPT/changelog.txt","fa04c8ec77d1ccf982be108224f13866c3e74e950d662736daacf49c312549f6"],["WAPT/control","a4f6b463a0101f0fcf0fdf941a44c27d607b13fee763ea001cfe7eba912ddf87"],["putty-64bit-0.73-installer.msi","31d001504b56e47d7e90b39a6fde6acf949e8c59d4717abac35eef0b932f89d7"]]