tis-hyper icon

hyper

Silent install package for hyper

3.4.1-1

  • package: tis-hyper
  • name: hyper
  • version: 3.4.1-1
  • maintainer: Amel FRADJ
  • licence: Copyright (c) 2018 Vercel, Inc.
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 73.77 Mo

package           : tis-hyper
version           : 3.4.1-1
architecture      : x64
section           : base
priority          : optional
name              : hyper
categories        : 
maintainer        : Amel FRADJ
description       : Hyper the goal of the project is to create a beautiful and extensible experience for command-line interface users, built on open web standards.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
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           : Copyright (c) 2018 Vercel, Inc.
homepage          : 
package_uuid      : 2207fe9a-98ab-4fe3-ba45-ce6593e063d6
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : dba47b00d12f0f344454976a7347708864f02571fc4e146b958a7b173f38d485
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : fg7j0Ur+CWlh82CL6+Gc5tzZy2dvRpd6qLrDcQgWpS9Y3pz+3zOFkwOb10b8c2MdOyOtSF9hOBee6t6oo/5ZsbLJZK8p+NXWDi5NSOd4yitggvNvkrDjL4j8tsJ1jMzbSKOBNgjzo++BgvLr2k3m04L+tCduvDXfHxHlqPgo6+VVg/HvXuwgC+E7NH1g3R8DNBat/visFhw8EOTuP/VseDnbf/gCV6HcEbTB8EJ+Hc/5L0Dl84U4auKkx6ZRMzGxTk4a6x5XHGvbUPGAlSbcYmyQt2Q307UCQgnpaRgEp9JverL3yyu/jtjU/GwAP65fqjmihifKbgDPsy9AcXdcPA==
signature_date    : 2024-06-01T10:07:00.957211
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('Hyper-Setup-*.exe')[0]
    # Installing the software

    install_exe_if_needed(bin_name,
        silentflags='/S /allusers',
        key='ac619139-e2f9-5cb9-915f-69b22e7bff50',
        min_version= control.get_software_version(),
    )



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


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

    api_url = "https://api.github.com/repos/vercel/hyper/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".exe"):
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"][1:]
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un exe a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    version = get_version_from_binary(latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

edc2f0250d803b313d5d8c1641cb665159e43f69b0d8d0686c31c02542e66583 : setup.py
3389366743fbd599a7449149d9e1266008a9f484afbac46b0d219feda354b40e : update_package.py
917fb88da238d3e2cbca9173a2ba1c9b4d298e94b283b480489e327051ee7b4f : Hyper-Setup-3.4.1.exe
dba47b00d12f0f344454976a7347708864f02571fc4e146b958a7b173f38d485 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d5d63f748f4dfd0de4a6ddff2084120577f9dc3fdacc78e983097856239d690c : luti.json
ef9b691a4fbed6520dcac6394893411a3b46ca201cffce6a988fedd15c3d8aee : WAPT/control