tis-opentofu-portable icon

tofu

Paquet d’installation silencieuse pour tofu

1.10.5-1

  • package: tis-opentofu-portable
  • name: tofu
  • version: 1.10.5-1
  • maintainer: Amel FRADJ
  • licence: MPL-2.0 license
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 25.64 Mo
  • homepage : opentofu.org

package           : tis-opentofu-portable
version           : 1.10.5-1
architecture      : all
section           : base
priority          : optional
name              : tofu
categories        : 
maintainer        : Amel FRADJ
description       : OpenTofu is an OSS tool for creating, modifying and versioning infrastructure securely and efficiently
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : OpenTofu est un outil OSS permettant de créer, de modifier et de versionner une infrastructure de manière sûre et efficace
description_pl    : OpenTofu to narzędzie OSS do bezpiecznego i wydajnego tworzenia, modyfikowania i wersjonowania infrastruktury
description_de    : OpenTofu ist ein OSS-Tool, mit dem man eine Infrastruktur sicher und effizient erstellen, ändern und versionieren kann
description_es    : OpenTofu es una herramienta OSS para crear, modificar y versionar infraestructuras de forma segura y eficiente
description_pt    : O OpenTofu é uma ferramenta OSS para criar, modificar e versionar infra-estruturas de forma segura e eficiente
description_it    : OpenTofu è uno strumento OSS per la creazione, la modifica e il versionamento di infrastrutture in modo sicuro ed efficiente
description_nl    : OpenTofu is een OSS-tool voor het veilig en efficiënt maken, wijzigen en versiebeheer van infrastructuur
description_ru    : OpenTofu - это OSS-инструмент для безопасного и эффективного создания, изменения и версионирования инфраструктуры
audit_schedule    : 
editor            : 
keywords          : 
licence           : MPL-2.0 license
homepage          : opentofu.org
package_uuid      : 3b71d20c-ef80-4381-aae6-bff58a6add32
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 68a49e9c72829057aafb675ea8f2a67602d89a93321bb0fa1e0f48d685c5e679
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-08-06T16:00:17.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         : NfjE4fzbr3Ti7rEdPt8Gqp4jE4pvm13DK0kPYOCru2ppLrCspWQM4ZSbsLckBL21RlJ6jwA7uTzEpXKMXEDBB8qlgupUjTWXoBFaivym8zXW0ZtQOffok/+eMGOfoAisGEZT3pcATGewQUjDayccuWAmBz7HobIEOOwDfj1HI5vl8AGoTsNkfJGxhGWYl2suY+icFHcqiEGk+QucPI6QRlwIHy2h+CksdrR3fQ//FBmj/VAUdzDrpP179HAQDJYwt/Xs1CLDemV4NB+csVszKEFQkMdH3ob81A4hbsAJxf4vYL5JcTXcszdgN0FwlbDMuI63WM+abDfeWSsAeVvcfg==

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

"""


"""


app_name = "tofu "
editor_dir = makepath(programfiles, "tofu")
app_dir = makepath(editor_dir, "tofu")
app_path = makepath(app_dir,"tofu.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"*.zip")[0]

    unzipped_dir = "tofu"


    # 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 tofu to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

    # Creating custom shortcuts
    create_desktop_shortcut(app_name, target=app_path)
    create_programs_menu_shortcut(app_name, target=app_path)


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)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_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()
    
    
    git_repo = "opentofu/opentofu"
    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("windows_386.zip")  :
            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()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
21c0268cb5cada47b9e6af8f6abf0e6785cf5b5b26f0c64172e8d74967c04792 : WAPT/control
68a49e9c72829057aafb675ea8f2a67602d89a93321bb0fa1e0f48d685c5e679 : WAPT/icon.png
0d6bc22f949f157555b296b35b623b5ac374a97515ff75769dc8e41b8272b8c9 : luti.json
9b5d20c72a0c8e96f7fbdcc6e5e7f3bae84eee18270f4364fab15913461cd5e2 : setup.py
1e034f9e144660b15a7e86677635d6a89a570f181d2f81424d4adf8fabb859a5 : tofu_1.10.5_windows_386.zip
146cfc90f815af7bf32984092d697c4e798b2e3a3e317913c59b6fd82b185e5b : update_package.py