tis-balena-cli icon

balena-cli

Paquet d’installation silencieuse pour balena-cli

25.1.2.0-1
Utilities
Utilities

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-balena-cli
  • name: balena-cli
  • version: 25.1.2.0-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ,
  • licence: opensource_free,cpe:/a:apache:license_2.0,wapt_private
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 109.12 Mo

package           : tis-balena-cli
version           : 25.1.2.0-1
architecture      : x64
section           : base
priority          : optional
name              : balena-cli
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ,
description       : The official Balena command-line interface
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : L'interface de ligne de commande officielle de Balena
description_pl    : Oficjalny interfejs wiersza poleceń Balena
description_de    : Balenas offizielle Befehlszeilenschnittstelle
description_es    : La interfaz de línea de comandos oficial de Balena
description_pt    : A interface de linha de comando oficial da Balena
description_it    : L'interfaccia ufficiale a riga di comando di Balena
description_nl    : De officiële Balena opdrachtregelinterface
description_ru    : Официальный интерфейс командной строки Balena
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,cpe:/a:apache:license_2.0,wapt_private
homepage          : 
package_uuid      : d588b840-fd4c-483e-bee5-b877e6613394
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a4eb40a3275e423dc317e64e71cdd52eabf69cdb77308378750a118f8bbb00d0
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-05-04T21:58:25.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         : UAl00Cxro2OnmnUs73Cd3VPfKBU4JbF+LXkTzqfLRtKzgLhx9YOxUD78xYpJvAsDfJmAisvS1Z2Or/C54ElVAT4qDpjoGzNyde6haeSqyGW15C/VGFrVng8Xh/cjQbwdAzw0EYz4CL9ERjKmHNHRWNhH3MsWjYwbYtBL5k+0CX1G/2kFVbAyEa8EI4jimwFqQi9xxIo0Fk3cAosDVadXWD9J76topB9ruVzUWqeWnXI1uYe7wO32J4a7jUns8RAzor7aZFGolZRFRg9JlmpC3Z1VSQCIOqEyFAL4bNOosjrc/jSlNy/6DAlj4aVL1kfrS1nrIMcLRL1DiZqe84cmiA==

# -*- 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("balena-cli-*.exe")[0]
    # Installing the software

    install_exe_if_needed(
        bin_name,
        silentflags="/S",
        key="balena-cli",
        min_version=control.get_software_version(),
    )

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    git_repo = "balena-io/balena-cli"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('.exe') :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)

    version =get_version_from_binary(filename)
    control.set_software_version(version)
    control.save_control_to_wapt()

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
a4948f93d9d2ece54858c88d99ca3bbb0e3a1199a4feefdaa85091a6d42e1fb5 : WAPT/control
a4eb40a3275e423dc317e64e71cdd52eabf69cdb77308378750a118f8bbb00d0 : WAPT/icon.png
ad14fa5b2e3c1048c0bda5af3423cfd400a8299de642b887fd863980dbe93776 : balena-cli-v25.1.2-windows-x64-installer.exe
d83d0ceddb0a5f82531797549f54f3042a38fd8fb6e6823a6bd89afe06082d6f : luti.json
5c36feb4c03f6c2ae664455fa4dff8af82ae3e199de28f4a8d025dde90d5c68b : setup.py
bccfd205f0ecd099dac38a517448358adabc70b144243dd67b4e96b43cc1a15e : update_package.py