tis-filezilla
3.56.2-4
FileZilla Client (FileZilla) is a FTP, FTPS and SFTP client
103757 downloads

Description
- package : tis-filezilla
- version : 3.56.2-4
- architecture : x86
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Gaëtan SEGAT
- description : FileZilla Client (FileZilla) is a FTP, FTPS and SFTP client
- locale : all
- target_os : windows
- min_wapt_version : 2.0
- sources : https://filezilla-project.org/download.php?show_all=1
- installed_size : 29036544
- impacted_process : filezilla,fzputtygen,fzsftp
- description_fr : FileZilla Client (FileZilla) est un client FTP, FTPS et SFTP
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Tim Kosse
- licence : GNU/GPLv2
- signature_date : 2021-10-29T10:10:20.230057
- Homepage : https://filezilla-project.org/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name_string = 'FileZilla_%s_win32-setup.exe'
silent_args = '/S'
app_uninstallkey = 'FileZilla Client'
def install():
# Initializing variables
package_version = control.version.split('-')[0]
bin_name = bin_name_string % package_version
# 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 session_setup():
print('Disabling: update check')
#C:\Users\username\AppData\Roaming\FileZilla\filezilla.xml
# Initializing variables
user_conf_dir = makepath(application_data,'FileZilla')
user_conf_file = makepath(user_conf_dir,'filezilla.xml')
user_conf_content = r"""<FileZilla3 platform="windows" version="">
<Settings>
<Setting name="Update Check">0</Setting>
</Settings>
</FileZilla3>"""
if not isdir(user_conf_dir):
mkdirs(user_conf_dir)
if not isfile(user_conf_file):
file_open = open(user_conf_file,'w')
file_open.write(user_conf_content)
file_open.close()
else:
import xml.etree.ElementTree as ET
user_conf_tree = ET.parse(user_conf_file)
user_conf_content = user_conf_tree.getroot()
for conf in user_conf_content.iter('Settings'):
for children in conf.getchildren():
if children.get('name') == 'Update Check':
children.text='0'
user_conf_tree.write(user_conf_file,encoding='utf-8')
def update_package():
# Initializing variables
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
url = 'https://filezilla-project.org/download.php?show_all=1'
bin_end = bin_name_string.split('%s')[-1]
#bin_start = bin_name_string.split('%s')[0]
# Getting latest version from official sources
print('URL used is: %s' % url)
for bs_search in bs_find_all(url, 'a', 'rel', 'nofollow',user_agent='Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:83.0)' , proxies=proxies):
if bs_search.text.endswith(bin_end):
latest_bin = bs_search.text
version = latest_bin.split('_')[1]
url_dl = bs_search['href']
break
print("Latest %s version is: %s" % (app_name, version))
print("Download url is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: %s' % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
if version != version_from_file:
os.rename(latest_bin,bin_name_string % version_from_file)
version = version_from_file
# Changing version of the package
control.version = '%s-%s' % (version, int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print("Changing package version to: %s in WAPT\\control" % control.version)
# Deleting outdated binaries
remove_outdated_binaries(version)