tis-flux-portable icon

flux

Silent install package for flux

2.8.2-1
Utilities
Utilities

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-flux-portable
  • name: flux
  • version: 2.8.2-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 24.83 Mo
  • homepage : https://fluxcd.io/

package           : tis-flux-portable
version           : 2.8.2-1
architecture      : x64
section           : base
priority          : optional
name              : flux
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Solution de livraison continue ouverte et extensible pour Kubernetes. Développé par GitOps Toolkit
description_pl    : Otwarte i rozszerzalne rozwiązanie do ciągłego dostarczania dla Kubernetes. Obsługiwane przez GitOps Toolkit
description_de    : Offene und erweiterbare Continuous-Delivery-Lösung für Kubernetes. Angetrieben von GitOps Toolkit
description_es    : Solución de entrega continua abierta y extensible para Kubernetes. Desarrollado por GitOps Toolkit
description_pt    : Solução de entrega contínua aberta e extensível para Kubernetes. Desenvolvido por GitOps Toolkit
description_it    : Soluzione di continuous delivery aperta ed estensibile per Kubernetes. Alimentato da GitOps Toolkit
description_nl    : Open en uitbreidbare continuous delivery oplossing voor Kubernetes. Aangedreven door GitOps Toolkit
description_ru    : Открытое и расширяемое решение для непрерывной доставки Kubernetes. На базе GitOps Toolkit
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://fluxcd.io/
package_uuid      : d66dd1a9-5a7d-43f1-a184-6b1a59290447
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 0de161b4427c495d508fa867cad3d9af6353d37563e735f28dc47bdafdda9d95
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-03-12T15:29:22.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         : FVt+8xOAqk9tclDpej/F12uF8g+oKIklwvA8IEHe1eKVbs8Ni29/IQ+OEt5BWv7kXF7i3s8I9139jg8EXe3QmOcD7Y6p/v6/BX3eGjsXTIX3ICufmlWgwI7/KOtseIJaVYcfiuDmkqFkefS4jYZzzOvqlCrvfKLuZ0FtZ8Y75ktP31h2MNZXGPTOLI/9CmJlOnLoOgFr0tYfiVdxThIVdLlgiASgVeleQXbsGoSHU6ldBEdnTnOWF5TKP/esib+NlxjmRDBcwYwln8DKo1rFINnpyrEdvK6xXiCfn7u81kfXWhDnvtAoexE/pTVJnJss/Xfy6UKsukQd7h5gqeuWvw==

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

"""


"""


app_name = "flux "
editor_dir = makepath(programfiles, "flux")
app_dir = makepath(editor_dir, "flux")
app_path = makepath(app_dir,"flux.exe")
audit_version = False


def get_installed_version(app_path):
    return get_file_properties(app_path).get("FileVersion", "")


def install():
    # Declaring local variables
    zip_name = glob.glob(f"flux_*.zip")[0]

    unzipped_dir = "flux"


    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    print("Extracting: %s to: %s" % (zip_name, unzipped_dir))
    unzip(zip_name, unzipped_dir)
    print('Copy flux to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)
    add_to_system_path(app_dir)

    

def audit():
    # Auditing software
    audit_status = "OK"
    installed_version = get_installed_version(app_path)
    if Version(installed_version) < Version(control.get_software_version()) and audit_version:
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print("%s (%s) is installed" % (app_name, installed_version))
        audit_status = "OK"
    else:
        print("%s is not installed" % app_name)
        audit_status = "ERROR"
    return audit_status


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)
    if dir_is_empty(editor_dir):
        remove_tree(editor_dir)

  

# -*- 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()
    dict_arch = {
        "x64" :"_windows_amd64.zip",
        "x86" :"_windows_386.zip"
    }
    git_repo = "fluxcd/flux2"
    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('.zip') and dict_arch[control.architecture] in download["browser_download_url"]:
            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('*.zip'):
        if f != filename:
            remove_file(f)

    
    control.set_software_version(version)
    control.save_control_to_wapt()

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
d2504e0377dcbdc4d9a84af523678735df7519597c7157ce5f1dc50301a66062 : WAPT/control
0de161b4427c495d508fa867cad3d9af6353d37563e735f28dc47bdafdda9d95 : WAPT/icon.png
3a9303323dfa0d9f9cd2222edf21e10d0429bb058b0189cc1362f6391384bac8 : flux_2.8.2_windows_amd64.zip
88963eddd73d734848203d4cb432247aee5ebd8ebeac77f034cd4a88997879a3 : luti.json
40aec881aaa7fd4ab63b8682a5c8b57ccb1ba2f4bc74e92c781b12a2b5daaff9 : setup.py
d32bc08d65224fbac626c3ee07a2a34b9d001b6e099880552e69739268e0c4b9 : update_package.py