tis-nicotine-plus icon

Nicotine+

Silent install package for Nicotine+

3.3.6-1

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

package           : tis-nicotine-plus
version           : 3.3.6-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      : 6a1a46cd-c0eb-4c10-830b-842ab5d6ed03
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 71aafae6144d56dd64e4491b5a01b22cdc3fdfb8a6b90ee11796cf4ef16a6db6
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-21T10:00:09.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         : x5uhevwSCNGm1/MMUCwEgwqqzXHVUCb9fIIrceSlYOMTz5/m1BtT40dA6dt6Rvt6g04/DbA7IWT7kpu5yWVBpX9cLd2/0TXmlRX4rhpEk2HDMN0tSQkcG7Y5AZ6cWQZnT9UzcduRNGPPy+okbby42peHxmE2JWtGeuoM3kR4Ontaszhayzx2e6RhjG0wz2idaS0Rmpr/M4fjTbNIkb/oVDq/CucDp3i3eOh3X544HaCP7LKcpL53GBE4sUMOel961/M7tebggVaXQTQV8ikztgFvKO5T8YrO/35EgzVjCWmyfyEqX5rniql0Z90v67MbbH4VqACa6/F8mbz+HkHE0Q==

# -*- 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_clang.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()

72439ad7fc1eda76a8914ea8e1980f405d53af3287cf69b2b0e2a82bd5eb6619 : Nicotine+-3.3.6-mingw_x86_64_clang.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
fa6731d364fae18c0d924c8511ddc7d7804c7ec022f13759b3068ba91c8b725f : WAPT/control
71aafae6144d56dd64e4491b5a01b22cdc3fdfb8a6b90ee11796cf4ef16a6db6 : WAPT/icon.png
6e6c47943990868a7bebf544b57836e75501caecc8fc63ca9620e0bb92781dc5 : luti.json
cf472d3e5dbd6a3cbaf396522d2f0b97e17a72267532bc715b0b066d7f9c22c0 : setup.py
1be215c053aaa694fb0d16bec3ed0f2169a08c2e1024da2eaf67486e2167a2f4 : update_package.py