tis-toastify icon

Toastify

Paquet d’installation silencieuse pour Toastify

1.11.2-1

  • package: tis-toastify
  • name: Toastify
  • version: 1.11.2-1
  • categories: Media
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Jesper Palm, Oren Nachman, Alessandro Attard Barbini
  • licence: opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: Toastify
  • architecture: x64
  • signature_date:
  • size: 2.73 Mo
  • installed_size: 9.52 Mo

package           : tis-toastify
version           : 1.11.2-1
architecture      : x64
section           : base
priority          : optional
name              : Toastify
categories        : Media
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Toastify is an application that adds some features to Spotify
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 9516513
impacted_process  : Toastify
description_fr    : Toastify est une application qui ajoute des fonctionnalités à Spotify
description_pl    : Toastify to aplikacja, która dodaje kilka funkcji do Spotify
description_de    : Toastify ist eine Anwendung, die Spotify um einige Funktionen erweitert
description_es    : Toastify es una aplicación que añade algunas funciones a Spotify
description_pt    : Toastify é uma aplicação que adiciona algumas funcionalidades ao Spotify
description_it    : Toastify è un'applicazione che aggiunge alcune funzioni a Spotify
description_nl    : Toastify is een applicatie die een aantal functies toevoegt aan Spotify
description_ru    : Toastify - это приложение, которое добавляет некоторые функции к Spotify
audit_schedule    : 
editor            : Jesper Palm, Oren Nachman, Alessandro Attard Barbini
keywords          : spotify,features
licence           : opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
homepage          : 
package_uuid      : fc3a6335-3597-4b30-b0ec-5986efafe4ba
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/aleab/toastify/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : cc3181e937053f915c8ea9c2615996e5ddeba1afd0b16c5ee81948db4dcbc011
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : X2MnsOGkaIWB1FW4KRAQ97ZtDR+6Sa1K4X0hipkB353Rwqgt4V8WsXVQZJugvx3th1duZ84yh4/9qbeWG/+nVLFyGfsgeD5YcIG5rW7IPEu5gZ72LSoaTfDL7+jvW9P1fgmALMqu08hIP2GE/Vpf8XJlEj4jds/uai1E0GImb7CPXetsFbU2LsoR/Gz6TSTLZKJBknhDJ+1rQrChUgeu+p4FN1N0s/JH+ItpTtlw2bQBD3TQPMc7JjFrgMtEbh8Inw3xOF1lkvA0tFRTyST7tIRUIzduRGmq6y3KKPqNivwiqEpd0A5PFZd5GRvvV1rkqS8o8qoq7QuqJjr9zZV26A==
signature_date    : 2024-07-29T12:01:14.791913
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

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


def install():
    bin_name = glob.glob("ToastifyInstaller.exe")[0]
    install_exe_if_needed(bin_name, 
    silentflags="/allusers /S",
    key="Toastify", 
    min_version=control.get_software_version())

def uninstall():
    # Uninstalling the software
    for to_uninstall in installed_softwares("Toastify"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])
        
    
    remove_programs_menu_shortcut("Toastify")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {"windows": ".exe"}
    api_url = "https://api.github.com/repos/aleab/toastify/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".exe") and update_dict[control.target_os] in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"].replace("v", "")
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un exe a été trouvé
                break

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

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

    version = get_version_from_binary(latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

1b97b912c9a5c9bd87eb68ef55984d93aa5c616bf66ae5765443200e9851ffab : setup.py
ad361ef702e9bf662a290c892313e03d0d163125d093701bcc808555463f8d9a : update_package.py
1701e58bb19fa3381a7692bef7aaa91982637106de974339b55f1e3868f4c6dc : ToastifyInstaller.exe
cc3181e937053f915c8ea9c2615996e5ddeba1afd0b16c5ee81948db4dcbc011 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e6119521201a406eb238fe15cce92dfcb8e0aa8b7bd914aa17713c807c00aff9 : luti.json
85c9f1649d3f2d07e8024c9507d9cfa6af9c5d0d49ffa04b027c4aae3aa0e0f1 : WAPT/control