tis-lx-music-desktop icon

lx-music-desktop

Silent install package for lx-music-desktop

2.9.0-1

  • package: tis-lx-music-desktop
  • name: lx-music-desktop
  • version: 2.9.0-1
  • categories: Media
  • maintainer: Amel FRADJ
  • licence: Apache License Version 2.0, January 2004
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 87.09 Mo
  • homepage : https://lxmusic.toside.cn/

package           : tis-lx-music-desktop
version           : 2.9.0-1
architecture      : x64
section           : base
priority          : optional
name              : lx-music-desktop
categories        : Media
maintainer        : Amel FRADJ
description       : A free and open source music search tool
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/lyswhut/lx-music-desktop/releases
installed_size    : 
impacted_process  : 
description_fr    : Un outil de recherche de musique gratuit et open source
description_pl    : Bezpłatne narzędzie do wyszukiwania muzyki o otwartym kodzie źródłowym
description_de    : Een gratis en open source muziekzoekprogramma
description_es    : Un programa musical gratuito y de código abierto
description_pt    : Um programa musical gratuito e de código aberto
description_it    : Un programma musicale gratuito e open source
description_nl    : 
description_ru    : Бесплатная музыкальная программа с открытым исходным кодом
audit_schedule    : 
editor            : 
keywords          : 
licence           : Apache License Version 2.0, January 2004
homepage          : https://lxmusic.toside.cn/
package_uuid      : 8a5fae1f-9f10-4db3-8a3d-cd140440d5f2
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ba9a924636caa95124481bbc80a567731e94907c2512363ccdd62f9f3606cd83
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : xiFd4Xga3QWQqiVET88Bx7EPwwoKaSXaGy8gQ8PeahimSKFIyHf6/09IFa8pwn/Age3j/F60sy4jszoGfd6thoa3IXgh8PTOg4TQN6ry3Fz4zZ09NP4FQ7abZlkvwGxvvxyq5GZFpl24OSzqQ1+LAfNeW5JDlgoK+fzlQosmyJx850JuceyLNaT/OLU+E7BrBYiLiZTQ4TF3cdljjj5XJUFUeooxUorz/j0GHCvKjukYT1VUoTHctJCT/zKoYsaic7dLuK+FEiqk5BsUdppPr/eVoLbm/4/1AZT6MH5nAzg328qnc7udUWfkq0o7/rGVzjdCf5fSBWxNmQ7piKMY4Q==
signature_date    : 2024-08-29T06:00:10.441508
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 *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"f648d280-aaa8-5ea1-b73b-5714fa41f508",
   "name":"lx-music-desktop 2.7.0",
   "version":"2.7.0",
   "install_date":"",
   "install_location":"",
   "uninstall_string":"\"C:\\Program Files\\lx-music-desktop\\Uninstall lx-music-desktop.exe\" /allusers",
   "publisher":"lyswhut",
   "system_component":0,
   "win64":true
  }
"""
# 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('lx-music-desktop-*-x64-Setup.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S /allusers',
        key='f648d280-aaa8-5ea1-b73b-5714fa41f508',
        min_version=control.get_software_version(),
    )



# -*- 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()
    dict_arch = {"x64":"-x64-Setup"}
    url_api = "https://api.github.com/repos/lyswhut/lx-music-desktop/releases/latest"

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


   
    if not isfile(filename):
        wget(url_download,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)

    version = get_version_from_binary(filename)

    control.set_software_version(last_version)
    control.save_control_to_wapt()

    return package_updated

e7e8b78e65ccff00e099cd8dfcb01ba1c84b620789940fa8654f998c12390b70 : setup.py
a1deee3181ad1f38558bf1850614bf9a6fa951cfc62545575eccb6ad16ebe78c : lx-music-desktop-v2.9.0-x64-Setup.exe
f1d91c4d3b305cb7e44361d1777560d45a260d312abbe4d236083c63e49671a8 : update_package.py
ba9a924636caa95124481bbc80a567731e94907c2512363ccdd62f9f3606cd83 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e1bab31da4fb9b27d31e4e7f9470b61ca4467350a29beab28f69ca2795dd2a27 : luti.json
8cd0b9788f098f2a91f0085311459724f36ebeaa608f599bc8c225c4bf4331a6 : WAPT/control