tis-github-cli icon

github-cli

Paquet d’installation silencieuse pour github-cli

2.74.2-1

  • package: tis-github-cli
  • name: github-cli
  • version: 2.74.2-1
  • maintainer: Amel FRADj
  • licence: MIT License Copyright (c) 2019 GitHub Inc.
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 14.25 Mo
  • homepage : https://cli.github.com/
  • depends:

package           : tis-github-cli
version           : 2.74.2-1
architecture      : x64
section           : base
priority          : optional
name              : github-cli
categories        : 
maintainer        : Amel FRADj
description       : gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code
depends           : tis-github-desktop
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/cli/cli/releases
installed_size    : 
impacted_process  : 
description_fr    : gh est GitHub sur la ligne de commande. Il apporte les demandes d'extraction, les problèmes et d'autres concepts GitHub au terminal à côté de l'endroit où vous travaillez déjà avec git et votre code.
description_pl    : gh to GitHub w wierszu poleceń. Przenosi żądania ściągnięcia, problemy i inne koncepcje GitHub do terminala tam, gdzie już pracujesz z git i swoim kodem.
description_de    : gh ist GitHub auf dem Kommando-Rig. Porta Richest Pull, Probleme und andere Konzepte von GitHub bis zum Ende, als ich anfing, mit Git und Ihrem Code zu arbeiten.
description_es    : gh es GitHub en la línea de comando. Trae solicitudes de extracción, problemas y otros conceptos de GitHub a la terminal junto con donde ya estás trabajando con git y tu código.
description_pt    : gh é GitHub na linha de comando. Ele traz solicitações pull, problemas e outros conceitos do GitHub para o terminal onde você já está trabalhando com o git e seu código.
description_it    : gh è GitHub sulla riga di comando. Porta richieste pull, problemi e altri concetti di GitHub al terminale insieme a dove stai già lavorando con git e il tuo codice.
description_nl    : gh è GitHub op de commandoinstallatie. Met de rijkste trekkracht zijn er meer problemen en problemen met GitHub op de terminal die een duif blijft binnendringen met zijn code.
description_ru    : gh — это GitHub в командной строке. Он переносит запросы на включение, проблемы и другие концепции GitHub на терминал рядом с тем местом, где вы уже работаете с git и своим кодом.
audit_schedule    : 
editor            : 
keywords          : 
licence           : MIT License Copyright (c) 2019 GitHub Inc.
homepage          : https://cli.github.com/
package_uuid      : 1c28324d-489d-4e49-9450-d8f2489beb45
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 23f96a59fef97fdc1458f1b383bf716474d6f5cfa0319fa6ccdc196a40d6dcd3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-23T18:02:38.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         : Yi38Sp8HT96F4oXHuberbz3NRYwOU93WgKE++sTayoH3V9AqZeUfvIXKLwOxDincLGHPesiuXviGMNDtWMt/RTqVCk4P3WCgQ7TFu4R+ywTqg0/aj6IeZb6Bhq81a9ET0zo7Bj9g0SJrCOBfmq4+uG51/goXftovUJ1vy2HMsNecOixmhYjuJpKAEhttNebytJugaeSQshH884DMyTsV5dJMY3LecVlUnmhPwf49RtJEy/VOcgR7nKrU5EUKLnVwnzZ9GJd1I73C/P2zvEwpo3OOsk7QqEaq68p2heRFcNG8t9TnII2jkJQMVxOxSZVnv6fa++vvaoQ+o6LkNmsFzw==

# -*- 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('gh_*_windows_amd64.msi')[0]
    # Installing the software
   
    install_msi_if_needed(bin_name)



# -*- 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()
    dict_arch = {"x64":"windows_amd64"}
    api_url = "https://api.github.com/repos/cli/cli/releases/latest"

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

    # Deleting binaries
    for f in glob.glob("*.msi"):
        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()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
42308b3ab4c7fa5fe0f4e65c70032dbcbd944b2d0d0de4869acbf52989b5b631 : WAPT/control
23f96a59fef97fdc1458f1b383bf716474d6f5cfa0319fa6ccdc196a40d6dcd3 : WAPT/icon.png
f02309de0c166ea323b0c0032803f969aa86d85ec24907b7c582da371efca38f : gh_2.74.2_windows_amd64.msi
8858c3cb60a9a4df386b22bb142a03acfb37a08ae866567444b241b7a37afaa4 : luti.json
43335cbae0e286dbdd09bff5e3a06adfdf2e82b68bd9a5d8283e9de8c83cd3c3 : setup.py
141446c2ab93520e026064308f3a8d76f5448b2edb4f0d55f6a2009ca33dafe7 : update_package.py