tis-yubikey-manager icon

YubiKey Manager

Silent install package for YubiKey Manager

1.2.6-1

  • package: tis-yubikey-manager
  • name: YubiKey Manager
  • version: 1.2.6-1
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • editor: 2017 Yubico
  • licence: proprietary_restricted,wapt_private
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 52.71 Mo
  • homepage : https://github.com/Yubico/yubikey-manager-qt

package           : tis-yubikey-manager
version           : 1.2.6-1
architecture      : x86
section           : base
priority          : optional
name              : YubiKey Manager
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Cross-platform application for configuring any YubiKey on any USB transport
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Application multiplateforme permettant de configurer n'importe quelle YubiKey sur tous les transports USB
description_pl    : Wieloplatformowa aplikacja do konfigurowania dowolnego przycisku YubiKey na dowolnym nośniku USB
description_de    : Plattformübergreifende Anwendung, mit der Sie jeden YubiKey auf jedem USB-Transport einrichten können
description_es    : Aplicación multiplataforma para configurar cualquier YubiKey en cualquier transporte USB
description_pt    : Aplicação multiplataforma para a configuração de qualquer YubiKey em qualquer transporte USB
description_it    : Applicazione multipiattaforma per la configurazione di qualsiasi YubiKey su qualsiasi supporto USB
description_nl    : Cross-platform toepassing voor het configureren van elke YubiKey op elk USB-transportmiddel
description_ru    : Кроссплатформенное приложение для настройки любого YubiKey на любом USB-транспорте
audit_schedule    : 
editor            : 2017 Yubico
keywords          : 
licence           : proprietary_restricted,wapt_private
homepage          : https://github.com/Yubico/yubikey-manager-qt
package_uuid      : a77b90bd-3e6e-4546-a20d-b102dc6569da
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4ee9ed0c7bb4e5b5fe8365ba0e80c13e2449dce0b5b85f8a332d38935a503119
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-01T11:44:56.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : MaYzDD5yMRyoVdTZZbR6MDrorThGTZvzDQDgrLhheLKKlNWPJNTehW5W8nvYW2ggMWM37hNxietPBfKRp6S5cjORushhf6U1OC/RYFJHwX0JJpDq+mKpFhSHUp+ZRDQBG+FjsqczjL51feeN77ryv2B17Sae0E/gSDkvY0hcAhzGXBYimRNA1LjdwW7ck0cJfwqpKn+NPjwRhkPcZRZoYSyjthuimjBBsWqjkIuxv5CJBQ3JdAtF3oc2rIqX5rTVf9yCTIbbKFSrsmGiwCHreFR4VMBKZqWMrvTisVAKsSWiTZXZBxmiu+LLxkG8+G23NDXfsNGn9ewlZ0vquEOwsA==

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

r"""
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


def install():
    # Declaring local variables
    bin_name = glob.glob('yubikey-manager-qt-*.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='yubikey-manager',
        min_version=control.get_software_version(),
    )



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




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    dict_arch = {
        "x64" :"-win64.exe",
        "x86" :"-win32.exe"
    }
    url_base = "https://developers.yubico.com/yubikey-manager-qt/Releases/"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "div","id","page-content", proxies=proxies)
    exe_file = None
    for div in divs:
        if exe_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.exe') and dict_arch[control.architecture] in link['href']:
                href = link['href']
                exe_file = href
                download_url = "https://developers.yubico.com/yubikey-manager-qt/Releases/" + exe_file
                latest_bin = exe_file.split('/')[-1]
                version = latest_bin.split('-')[-2]
                break


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.exe'):
        if f != latest_bin:
            remove_file(f)

    
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
29f36f6957d3568b0370d3a8c1371182aa8ac9fdff74ce6bc8e5b4166694691b : WAPT/control
4ee9ed0c7bb4e5b5fe8365ba0e80c13e2449dce0b5b85f8a332d38935a503119 : WAPT/icon.png
7bbae0098699a27e3feb90f56a9c8e5c9d5b9d93f5fee4ea1dc151b35941d387 : luti.json
e43cc811d6347a49ab05c6b58225881dc6a6642875ee62b20ede9de62b3b0479 : setup.py
e11fa9f84f282278898a0c016f3bf71b35b60241165ddc75486b0450edca57b3 : update_package.py
4eb85788107c0af89ca1ade0779cac9e86cf2d7a71c09b239fd478ff8abd882c : yubikey-manager-qt-1.2.6-win32.exe