tis-nushell icon

Nushell

Paquet d’installation silencieuse pour Nushell

0.106.0-1

  • package: tis-nushell
  • name: Nushell
  • version: 0.106.0-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: The Nushell Project Developers
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: nu
  • architecture: x64
  • signature_date:
  • size: 43.72 Mo
  • installed_size: 96.36 Mo
  • homepage : https://www.nushell.sh/

package           : tis-nushell
version           : 0.106.0-1
architecture      : x64
section           : base
priority          : optional
name              : Nushell
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Nushell is a new type of cross-platform shell
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://www.nushell.sh/
installed_size    : 96362967
impacted_process  : nu
description_fr    : Nushell est un nouveau type de shell multiplateforme
description_pl    : Nushell to nowy typ wieloplatformowej powłoki
description_de    : Nushell ist eine neue Art von plattformübergreifender Shell
description_es    : Nushell es un nuevo tipo de shell multiplataforma
description_pt    : Nushell é um novo tipo de shell multiplataforma
description_it    : Nushell è un nuovo tipo di shell multipiattaforma
description_nl    : Nushell is een nieuw type cross-platform shell
description_ru    : Nushell - это новый тип кроссплатформенной оболочки
audit_schedule    : 
editor            : The Nushell Project Developers
keywords          : shell,cross-platform
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : https://www.nushell.sh/
package_uuid      : f4a263f2-8a88-49de-9399-35b8a2d6042c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 74a5a941013f8e4aa940b3098b3261869b38f06eb7beb04055c9b9a2341fa85c
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-29T07:01:43.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         : W8lrxQGy9pE8I9GG/L5Z9iIkgYflEWZjZYw41gbBMP9sc4YHgp3WiR5z3KJ5VUcrXtux3izdW00m6X8s5PvizQqJ5DO52bUOX0EYbXXNz7PxtlAQQ9+cH6uQRsXqfD501aYiSu8pT4eRjGTI/CvfN/17Fj8+2AutC43rRbMR7A9oLL2LJZgQ/RBI6l16dab4r/59ySYFRihlDaZpB3TfFSTOBgR0fF+R0GgeBHv5rRdqRCkChzrVZzPnjZZv9TpNtVOSpJJAd+PkL7q0wAhiAeQ7mUdkmGIH0dARC2YJEff8AJSc5JvBeixjjF/qnC3+CELSD2lYFKjSG7IDOskv2Q==

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


app_name = "nushell"
app_dir = makepath(systemdrive, programfiles, "nushell")
menu_shortcut = makepath(app_dir, "nu.exe")


def install():
    if not isdir(app_dir):
        zip_name = glob.glob("nu-*-x86_64-pc-windows-msvc.zip")[0]
        mkdirs("nushell")
        unzip_dest = "nushell"
        unzipped_dir = "nushell"

        # Installing software
        killalltasks(ensure_list(control.impacted_process))
        if isdir(app_dir) and force:
            remove_tree(app_dir)
        unzip(zip_name, unzip_dest)
        copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

        create_programs_menu_shortcut("nushell", menu_shortcut)


def uninstall():
    print("Désinstallation de nushell")
    killalltasks(ensure_list(control.impacted_process))
    remove_tree(app_dir)
    remove_programs_menu_shortcut("nushell")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    api_url = "https://api.github.com/repos/nushell/nushell/releases/latest"
    update_dict = {
        "windows-x64": "_64-pc-windows-msvc.zip",
    }

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "")
    for to_download in json_load["assets"]:
        if update_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
            if ".zip" in to_download["name"]:
                download_url = to_download["browser_download_url"]
                latest_bin = to_download["name"]
                break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)
    # arch_list = ensure_list(control.architecture)
    # remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))

    # Checking version from file
    # if get_os_name() == "Windows" and "windows" in control.target_os.lower():
    #     version_from_file = get_version_from_binary(latest_bin)
    #     if Version(version_from_file, 4) == Version(version, 4):
    #         print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
    #     else:
    #         error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a9418925561d719eee7c6534807f45bf103d04fec4f7423c2a32230d7bd1d73f : WAPT/control
74a5a941013f8e4aa940b3098b3261869b38f06eb7beb04055c9b9a2341fa85c : WAPT/icon.png
95fb4581662b600c231a29d7d54cd0f5f80f2ffd693f72988123f46d622c83b5 : luti.json
95c061956b2074eea31632a7033f9492606e1254313697bdc659b7dbdb9a5083 : nu-0.106.0-x86_64-pc-windows-msvc.zip
2436563524ec9229bbd591c6cd19b530e727eb5e5f43620c342a7d206a0706f0 : setup.py
a9975085a3c625313125fb7dbda68df7a7a71cb3290faf761dd8d5eb19f7bec1 : update_package.py