Détails du package smp-winscp_5.15.3-1_all.wapt
retour Revenir à la liste des packages

smp-winscp

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-winscp
version           : 5.15.3-1
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Simon Fonteneau
description       : WinSCP is a free SFTP and FTP client for Windows, and a multi-functional tool that improves your productivity. WinSCP copies files between and remote computers using multiple protocols: FTP, FTPS, SCP, SFTP, or WebDAV.
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 87703552
impacted_process  : Winscp.exe
description_fr    : WinSCP est un client SFTP et FTP gratuit pour Windows, et un outil multifonctionnel qui améliore votre productivité. WinSCP copie des fichiers entre et des ordinateurs distants en utilisant plusieurs protocoles: FTP, FTPS, SCP, SFTP ou WebDAV.
description_pl    : 
description_de    : 
description_es    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 9c68d1b3-3331-4d1b-a027-5bef977102f8
valid_from        : 
valid_until       : 
forced_install_on : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : hQyLstLtAmBxV+uiovt4COz9cSUyVUAHSoByw77karl89L1ckNj/BOGO+EpdH7PUsKmamgVBTrRQqxJ7T1714BxLTUNQ10uAddSrXLM2dzoTLd3l5oI5FFJvr6ar8esyFAwe1fTotywleqzVCdliSK3FlENJXbeKkC6/f8pQ8U0DLBe2a9BmIUU0nRhNcaLFrAMwXAHALonZY25MLxqD0rlLwwCniHno4Q70cV+t2NMnj0Mjo9o3/UssjqrCxcnIWiYXuIbBZGLXyAwTkuVP8hRVXH9W5PnNjuHmu6I5qoOzte/OTI5rKlbcpk1rYPu9t6DAp7uQF93OKVNi4VIoXw==
signature_date    : 2019-07-21T17:58:07.360000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *

uninstallkey = []

def install():
    diskfreespacebefore = get_disk_free_space(programfiles)
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed('WinSCP-%s-Setup.exe' % versionpaquet ,silentflags='/VERYSILENT /NORESTART /LOADINF=winscp.ini',key='winscp3_is1',min_version=versionpaquet,killbefore=['Winscp.exe'])
    uninstallkey.remove('winscp3_is1')
    remove_desktop_shortcut('WinSCP')
    print(ur"Espace disque necessaire pour l'installation : " + str(diskfreespacebefore - get_disk_free_space(programfiles)))


def uninstall():
    run('"%s" /VERYSILENT /NORESTART' % makepath(install_location('winscp3_is1'),'unins000.exe'))







def update_package():
    import requests
    htmlSource = wgets("https://winscp.net/eng/download.php").splitlines()
    for line in htmlSource :
        if 'WinSCP-' and '-Setup.exe' in line :
            realversion = line[line.find("WinSCP-") + 7 :line.find("-Setup.exe")]
            filename = 'WinSCP-' + realversion + '-Setup.exe'
            link = 'https://winscp.net/download/'+ filename
            htmlSource2 = wgets(link).splitlines()
            for line2 in htmlSource2 :
                if 'https://winscp.net/download/files/' in line2 :
                    reallink = line2[line2.find("https://") :line2.find('.exe')] + '.exe'
                    break
            break

    if not isfile(filename):
        wget(reallink, filename)

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filename:
            remove_file(fn)

    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()