tis-miranda icon

Miranda

Paquet d’installation silencieuse pour Miranda

0.96.6-1

  • package: tis-miranda
  • name: Miranda
  • version: 0.96.6-1
  • categories: Messaging
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public,cpe:/a:apache:license_2.0
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 6.92 Mo

package           : tis-miranda
version           : 0.96.6-1
architecture      : x64
section           : base
priority          : optional
name              : Miranda
categories        : Messaging
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Miranda NG is the successor to the popular Miranda IM multiprotocol instant messaging client for Windows. Extremely fast and requiring very few system resources
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Miranda NG est le successeur d'un client de messagerie instantanée multiprotocole populaire pour Windows  Miranda IM. Très peu gourmand en ressources système et extrêmement rapide
description_pl    : Miranda NG jest następcą popularnego wieloprotokołowego klienta wiadomości błyskawicznych dla systemu Windows, Miranda IM. Wymaga bardzo niewielu zasobów systemowych i jest niezwykle szybka
description_de    : Miranda NG ist der Nachfolger des beliebten Multiprotokoll-Instant-Messaging-Clients für Windows Miranda IM. Sehr geringe Belastung der Systemressourcen und extrem schnell
description_es    : Miranda NG es el sucesor del popular cliente de mensajería instantánea multiprotocolo para Windows, Miranda IM. Requiere muy pocos recursos del sistema y es extremadamente rápido
description_pt    : O Miranda NG é o sucessor do popular cliente de mensagens instantâneas multi-protocolo para Windows, o Miranda IM. Requer muito poucos recursos do sistema e é extremamente rápido
description_it    : Miranda NG è il successore del popolare client di messaggistica istantanea multiprotocollo per Windows, Miranda IM. Richiede pochissime risorse di sistema ed è estremamente veloce
description_nl    : Miranda NG is de opvolger van de populaire multiprotocol instant messaging-client voor Windows, Miranda IM. Het vereist zeer weinig systeembronnen en is extreem snel
description_ru    : Miranda NG - это преемник популярного многопротокольного клиента обмена мгновенными сообщениями для Windows, Miranda IM. Он требует очень мало системных ресурсов и отличается высокой скоростью работы
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public,cpe:/a:apache:license_2.0
homepage          : 
package_uuid      : 43ada474-270d-4374-b759-39cb46ec3924
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 2aec26817926d630ca0255340487dcb1cfe5001c21023665c2a1f771a4621a34
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-13T07:07:20.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         : wooSfzIn5/RrT+jCWFC/NO35uUvPuRUoyfvH2rgTTJCqTYGY3jCCxG7QHewiJXkID8JjIq6lEEIz+xt3HZn8NEY0Lmy1zj6xY9uiLUPZO2+QVCAnZxJsQ7cy/C6bU9Xs5rENSBQBsk1jaaCPwiDBcWDHjml+ucqi3/w/BaG8FA+igMzP3YEWoYK9Ywtt6KdnPUfbveApaGLCUHN/5iSQJEspxBGMDn4nLlvyeAaV9HcctJpNDUes+K+GIPmq7he1lpRcGeV7ZDl2sJHeSLGLTZzsv01atVM6FfswCHbErwIVP+2mGPA5Ot0t8T81X1I1liMlTkQxYYKCkDWKjnrMug==

# -*- 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('miranda-ng-*.exe')[0]
    # Installing the software

    # Uninstalling older version of the software that can remains
    for to_uninstall in installed_softwares(name="Miranda"):
      if Version(to_uninstall["version"]) < Version(control.get_software_version()):
        print(f"Removing: {to_uninstall['name']} ({to_uninstall['version']})")
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

    
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART',
        key='Miranda NG_is1',
        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" :"_x64.exe"
    }
    url_base = "https://www.miranda-ng.org/downloads/"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "td", 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://www.miranda-ng.org" + exe_file
                latest_bin = exe_file.split('/')[-1]
                version = latest_bin.split('-')[-1].rsplit('_')[0].replace('v','')
                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)

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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3b6f69c0108ae5e93c1bc119b8b09a800fce88e3eeb08f93d2b66487a7994e20 : WAPT/control
2aec26817926d630ca0255340487dcb1cfe5001c21023665c2a1f771a4621a34 : WAPT/icon.png
a305495639659e106e9f22d98fd389ca738f19716af9e654c18fcc58d5b05670 : luti.json
3a1e66d0727aa27a9961133667a1ebc33a84a172cb9e7b805686362231cfee7f : miranda-ng-v0.96.6_x64.exe
2c0e5c42a9d63f8e09916a7693c0435e5d1aee4289b18ed60a04ee848820b25b : setup.py
ad479cee809d27cca1c8229404046c3e30a49892967112021e02fd43cda37461 : update_package.py