- package: tis-starship
- name: starship
- version: 1.19.0-3
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
- editor: Starship Contributors
- licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
- locale: all
- target_os: windows
- impacted_process: starship
- architecture: x64
- signature_date:
- size: 3.63 Mo
- installed_size: 9.53 Mo
- homepage : https://starship.rs/
package : tis-starship
version : 1.19.0-3
architecture : x64
section : base
priority : optional
name : starship
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Ingrid TALBOT
description : starship is a minimal and customizable prompt for any shell
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources :
installed_size : 9525760
impacted_process : starship
description_fr : starship est un prompt minimal et personnalisable pour n'importe quel shell
description_pl : starship to minimalny i konfigurowalny monit dla dowolnej powłoki
description_de : starship ist eine minimale und anpassbare Eingabeaufforderung für jede Shell
description_es : starship es un prompt mínimo y personalizable para cualquier shell
description_pt : starship é um prompt mínimo e personalizável para qualquer shell
description_it : starship è un prompt minimale e personalizzabile per qualsiasi shell
description_nl : starship is een minimale en aanpasbare prompt voor elke shell
description_ru : Звездолет - это минимальная и настраиваемая подсказка для любой оболочки
audit_schedule :
editor : Starship Contributors
keywords : prompt,shell
licence : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage : https://starship.rs/
package_uuid : b4afe882-45ce-4138-a036-f0522de8bc6a
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 6bc9d7826949568ce7bb8a7fcc759bf9dd0f5d788f5947d7f7cf74c16fca1cfd
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : fUuWFRP/0yISks7TduVsQ+ivwXAfnm6Jtuffm6B58bEQZ6PMm3COpAuOsfENgYnQ5+jNM5CyCIFHEVEOJVhw1bTl2G68hjyD9/COY+HCXGFZrUqj6nn0zzDaYk0akMrZP8sG4tI2aUcWSrg7podYRC/CADSzeY9pYjxhTMjVOoC3Ry9UaP0ohavdrILFHRyVCE+jXfsEZ//TCwjRpKzbNG8u6SvlMgdU/1vFlgVWpqq4/KiP59xsoZUJSKGX9+uBsGSSUcamTrpBA+teCINDGcF0X0LwO1MgdevZWb2xh5101TYBkg/43Vihe/sU8nF7UzZWS33NsGQi/pO37NUApw==
signature_date : 2024-05-29T15:01:55.766894
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 *
def install():
bin_name = glob.glob("starship-x86_64-pc-windows-msvc.msi")[0]
install_msi_if_needed(
bin_name,
min_version=control.get_software_version(),
timeout=600,
)
# -*- 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/starship/starship/releases/latest"
update_dict = {
"windows-x64": "_64-pc-windows-msvc.msi",
}
# url = "https://api.github.com/repos/starship/starship/releases"
# url = update_dict["url"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']
# latest_bin = update_dict["latest_bin"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']
# download_url = update_dict["download_url"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']
# 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"]:
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)
d0c64f5d0d25420685ca42ba7b4b991c868326571e71d04f1b4de718dfbacfd3 : setup.py
19f753889664161c0e4505e05d6c138aa04b8d0698bf401c849007fbad53a840 : update_package.py
6bc9d7826949568ce7bb8a7fcc759bf9dd0f5d788f5947d7f7cf74c16fca1cfd : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
cd32be24b6c9a0e3199c0017b9a9b0d8256df1a1be5ad24594876466dee1963a : starship-x86_64-pc-windows-msvc.msi
fe918ea261138ce9d7c844ff3ca35b948a702070f62e91d9adc731fedb062fe9 : luti.json
f39ab38039d979092c968a5b0ef035c16df3ced8abf01d42e6462777ca195eff : WAPT/control