tis-nitroshare icon

nitroshare

Paquet d’installation silencieuse pour nitroshare

0.3.4-1

  • package: tis-nitroshare
  • name: nitroshare
  • version: 0.3.4-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 9.25 Mo
  • homepage : https://nitroshare.net/

package           : tis-nitroshare
version           : 0.3.4-1
architecture      : x64
section           : base
priority          : optional
name              : nitroshare
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : NitroShare is a cross-platform network file transfer application. Other network devices running the application are automatically detected, and files can easily be transferred directly to them
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : NitroShare est une application de transfert de fichiers en réseau multiplateforme. Les autres appareils du réseau exécutant l'application sont automatiquement détectés et les fichiers peuvent facilement y être transférés directement
description_pl    : NitroShare to wieloplatformowa aplikacja do przesyłania plików w sieci. Inne urządzenia w sieci z uruchomioną aplikacją są automatycznie wykrywane, a pliki mogą być łatwo przesyłane bezpośrednio do nich
description_de    : NitroShare ist eine plattformübergreifende Anwendung zur Übertragung von Dateien im Netzwerk. Andere Geräte im Netzwerk, auf denen die Anwendung läuft, werden automatisch erkannt und Dateien können einfach direkt dorthin übertragen werden
description_es    : NitroShare es una aplicación de transferencia de archivos en red multiplataforma. Los demás dispositivos de la red que ejecutan la aplicación se detectan automáticamente y los archivos pueden transferirse directamente a ellos con facilidad
description_pt    : O NitroShare é uma aplicação de transferência de ficheiros em rede multiplataforma. Outros dispositivos na rede que executam a aplicação são automaticamente detectados e os ficheiros podem ser facilmente transferidos diretamente para eles
description_it    : NitroShare è un'applicazione multipiattaforma per il trasferimento di file in rete. Gli altri dispositivi in rete che eseguono l'applicazione vengono rilevati automaticamente e i file possono essere facilmente trasferiti direttamente ad essi
description_nl    : NitroShare is een toepassing voor bestandsoverdracht via een netwerk voor meerdere platforms. Andere apparaten op het netwerk waarop de toepassing wordt uitgevoerd, worden automatisch gedetecteerd en bestanden kunnen gemakkelijk rechtstreeks naar hen worden overgedragen
description_ru    : NitroShare - это многоплатформенное приложение для передачи файлов по сети. Другие устройства в сети, на которых работает приложение, обнаруживаются автоматически, и файлы могут быть легко переданы непосредственно на них
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://nitroshare.net/
package_uuid      : b995998d-8910-44a6-87fd-f922c5811fc8
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9db74cead18cd2dfa86acf68cfe9eb28eebd1d7889358a64b2c15afc3b4fbf65
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-13T09:01:40.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         : LwR5vX9MNSd0LAviELc9PDTP6Xn2UZb1mJUBRO4pCS9OsQcUHiYXviLttsqm9GiaawCQLoANt5oFoho3GerNPn1W+v2knpGfik0u/BByLBgyLaovHYHlBUThG5cDnZu7EB4BFJxoSvJkzlV88Nm2BfqGRJZLeKNjDF5mnmC2sfFe+E0d7jMCbJmJyr5WjvW69JqLjQeCWHwCVEO7O5MSdinjnz8Gnm5z1UHYZz0NGJeEwMdHlnJWlngfZc8tygNf9TxJvWr/dayCvdRIkBWUCg97ZqNopVpan5sqKMafx+BRhm6AY8he2BIsyyAPXEl9NLlowcWwGi1vt9VcxldI9Q==

# -*- 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('nitroshare-*.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key='{174A4547-917E-4BAF-9F25-FCE545CCD487}_is1',
        min_version=control.get_software_version()
    )



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



def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    dict_arch = {
        "x64" :"-windows-x86_64.exe",
        "x86" :"-windows-x86.exe"
    }
    url_base = "https://nitroshare.net/"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "p", proxies=proxies)
    exe = None
    for div in divs:
        if exe:
            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 = href
                download_url = exe
                latest_bin = exe.split('/')[-1]
                version = exe.split('/')[-3]
                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('*.zip'):
        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
d93bb1ccef4e817c33149c51cc1725e2053692d8de6e8e04b4e8bdd068afacad : WAPT/control
9db74cead18cd2dfa86acf68cfe9eb28eebd1d7889358a64b2c15afc3b4fbf65 : WAPT/icon.png
9a9f7a05fd0de516d1a3bc27ebc94c609ad81a9807abc7b9aad3f9c05b62eb72 : luti.json
0816aa1147f66d09b5af96170ab34361516a58a98d98470025b285ade71ca358 : nitroshare-0.3.4-windows-x86_64.exe
7d1f2730191a5795c8df9ab3489bae43ed9ac233656b9b344b71d97ae44e04b7 : setup.py
d466fccefde3a86a1e2beca0a883285f819f79c2f30f77e4ece49280224a3147 : update_package.py