tis-nicotine-plus icon

Nicotine+

Silent install package for Nicotine+

3.3.4-1

  • package: tis-nicotine-plus
  • name: Nicotine+
  • version: 3.3.4-1
  • maintainer: Amel FRADJ
  • licence: GPL-3.0 license
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 40.76 Mo
  • homepage : nicotine-plus.org

package           : tis-nicotine-plus
version           : 3.3.4-1
architecture      : x64
section           : base
priority          : optional
name              : Nicotine+
categories        : 
maintainer        : Amel FRADJ
description       : Nicotine+ is a graphical client for the Soulseek peer-to-peer network
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/nicotine-plus/nicotine-plus/releases
installed_size    : 
impacted_process  : 
description_fr    : Nicotine+ est un client graphique pour le réseau peer-to-peer Soulseek
description_pl    : Nicotine+ to graficzny klient sieci peer-to-peer Soulseek
description_de    : Nicotine+ ist ein grafischer Client für das Peer-to-Peer-Netzwerk Soulseek
description_es    : Nicotine+ es un cliente gráfico para la red peer-to-peer Soulseek
description_pt    : Nicotine+ é um cliente gráfico para a rede peer-to-peer Soulseek
description_it    : Nicotine+ è un client grafico per la rete peer-to-peer Soulseek
description_nl    : Nicotine+ is een grafische client voor het Soulseek peer-to-peer netwerk
description_ru    : Nicotine+ - это графический клиент для пиринговой сети Soulseek
audit_schedule    : 
editor            : 
keywords          : 
licence           : GPL-3.0 license
homepage          : nicotine-plus.org
package_uuid      : 2fdd3e1d-ff7b-43fc-ba61-0b0e9d7d267b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 71aafae6144d56dd64e4491b5a01b22cdc3fdfb8a6b90ee11796cf4ef16a6db6
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : AI3ff5r+3p+dNGEgpu8W3QzyDg6/Dcxcmx4mYUjtBDsSAkRJxLmlp+WTEjpcA/ARCR4DiVCUW76Xg6qc7LVmIMaEep/UIuPqNa6eI2+N49raAsXBFFb8wuzN5ZuuOKGQUOri3MNUDIX98gT5yA7/Nb/7yLs8o7PY24SWKLXFpWDR3BfRr1aGYI7BItjuoRM5uiS+WCe5KOHtZ5gOEJ23DT3aNVfGzGanDajEP1GGi/LT7WL8tVypWzLh/yFQrEO71iKCaEMlcHllavDgfb9uhsyVJH3UQsdSl5RG09BOnaCkVAN5c9tEUxImDIJRNoxUFva6SexXNxA15yieGHzrpw==
signature_date    : 2024-07-20T11:11:11.423367
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()

"""
# 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('Nicotine+-*-mingw_x86_64.msi')[0]
    # Installing the software
    
    install_msi_if_needed(bin_name)



# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json
import zipfile

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls

def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    git_repo = "nicotine-plus/nicotine-plus"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    url_dl = None
    filename = None

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('windows-x86_64-installer.zip'):
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if url_dl is None:
        print("No windows-x86_64-installer.zip found in the latest release.")
        return

    if not isfile(filename):
        package_updated = True
        wget(url_dl, filename, proxies=proxies)

    # Unzip the downloaded file to extract the .msi file
    with zipfile.ZipFile(filename, 'r') as zip_ref:
        zip_ref.extractall()

    # Delete the ZIP file after extraction
    if isfile(filename):
        remove_file(filename)
        print(f"Deleted the ZIP file: {filename}")    

    msi_filename = None
    for f in glob.glob('*.msi'):
        msi_filename = f
        break

    if msi_filename:
        print(f"Found .msi file: {msi_filename}")
    else:
        print("No .msi file found in the unzipped content.")

    # Clean up temporary files
    for f in glob.glob('*.zip'):
        if f != filename:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

55faacf70dfff14c5b1b05703ac0e1d5136c038f6c019c31ea071291ada8a518 : setup.py
e14ed6f24194e2d3399a6e1b5a967c904ad750fd23d8b1726618f7bf76f8170b : Nicotine+-3.3.4-mingw_x86_64.msi
1be215c053aaa694fb0d16bec3ed0f2169a08c2e1024da2eaf67486e2167a2f4 : update_package.py
71aafae6144d56dd64e4491b5a01b22cdc3fdfb8a6b90ee11796cf4ef16a6db6 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
25b8d92ea7cf92c9e3c2e400e26fe1a665310437eb2f4ce7898c0d77471462ca : luti.json
7c76ee6d9cd71b0cabe1118a3831d87d0a5cf7d3a80b65639dfce4f4dce686f9 : WAPT/control