tis-balena-cli icon

balena-cli

Silent install package for balena-cli

22.1.5.0-1

  • package: tis-balena-cli
  • name: balena-cli
  • version: 22.1.5.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: 107.52 Mo

package           : tis-balena-cli
version           : 22.1.5.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          : PROD
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      : bdd72e2d-0bb2-4024-8b1d-646b7a260ac5
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a4eb40a3275e423dc317e64e71cdd52eabf69cdb77308378750a118f8bbb00d0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-08-06T15:02:31.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         : Um1wLeYIf1xQ9XtZMrniW7cuJQgxoGsldsFqKHQK7d1w2ee12OnA84El98PKOR0w6UMmFwcIhEo/MMprwwWPpVrzZoi8Dr3tYCCqZQa4TKqNhDKLTLmphVj//6DPSJjDgAa2Z1xm3m+XeG4q2sBGDbClhh8N8uPO6oWAUK69rFbM6vAlUItAubPrsZki5DFZDTjDyN6kint7nlk3gVptnVrKsLij7KnBTctZoCjpo92BjGZMdIZtt4/E/qZVKgCdl40bn25Xer7mM2qGzOsGgoAZjRi/CTDQbvg9DsllD+zlBmngWCa2VRfiusbEkYauxIUWIwYBdGBnoqCYStD5wg==

# -*- 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()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
619334cdae4affcdb9712e0cbad0b1c2a3800666ffaff129d06328e07c9d2305 : WAPT/control
a4eb40a3275e423dc317e64e71cdd52eabf69cdb77308378750a118f8bbb00d0 : WAPT/icon.png
c8db613bde8fe24eefc797d2cc4f816bb2e2220cdd5ef4db0136847aa66db7fe : balena-cli-v22.1.5-windows-x64-installer.exe
de9f7142368c17c34eb418e94984288fdb492f0ded91b609863ebda46a5b1a5f : luti.json
5c36feb4c03f6c2ae664455fa4dff8af82ae3e199de28f4a8d025dde90d5c68b : setup.py
bccfd205f0ecd099dac38a517448358adabc70b144243dd67b4e96b43cc1a15e : update_package.py