tis-openbve-portable icon

openbve

Paquet d’installation silencieuse pour openbve

1.11.2.7-1

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

  • package: tis-openbve-portable
  • name: openbve
  • version: 1.11.2.7-1
  • maintainer: Amel FRADJ
  • licence: https://openbve-project.net/copyright
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 15.98 Mo
  • homepage : www.openbve-project.net

package           : tis-openbve-portable
version           : 1.11.2.7-1
architecture      : all
section           : base
priority          : optional
name              : openbve
categories        : 
maintainer        : Amel FRADJ
description       : OpenBve is a free, open source, license-free train driving simulator
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : OpenBve est un simulateur de conduite de train sans licence, open source et gratuit
description_pl    : OpenBve to darmowy, otwarty i pozbawiony licencji symulator jazdy pociągiem
description_de    : OpenBve ist ein lizenzfreier, Open-Source- und kostenloser Zugfahrsimulator
description_es    : OpenBve es un simulador de conducción de trenes gratuito, de código abierto y sin licencia
description_pt    : O OpenBve é um simulador de condução de comboios gratuito, de código aberto e sem licença
description_it    : OpenBve è un simulatore di guida di treni gratuito, open source e privo di licenza
description_nl    : OpenBve is een gratis, open source, licentievrije treinbesturingssimulator
description_ru    : OpenBve - это бесплатный лицензионный симулятор вождения поезда с открытым исходным кодом
audit_schedule    : 
editor            : 
keywords          : 
licence           : https://openbve-project.net/copyright
homepage          : www.openbve-project.net
package_uuid      : 9b04ed84-480c-4eca-a140-7b3cc779a730
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 98a27c147e60fb9335e7531047df27df6b448c95c7d944891147d3cb082c6d04
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-10-13T10:01:59.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         : f/XgcF5mFF3JU+/dQW+f6ijGme6De35Xm4/jJtfaU7htpHA8G9Vx9h+i8FruO2m9gAoAnAfLlGhYQePEj27EjvcFJoCa405w+vJYdQCqBoqwvKBebHI4rm7081Jn/kNxeERTXQalX40DK1/JHIKe7lwqKVA6sHkaNKrA3K4Iv+wNw8qvflJsP0zbWYlOFtQzft19HCcTzXlogUMuyBNd8+AT+0GcM4onBFmd4UX98C0Kygt53WQnIrpi80QtTzzM8xvtLa4tGnG82r4bE8Ryz1m3UiHI7KF1oIE4QgTmkgsTXoKfhos1vS3uNzEixBpZFYzBu/OaraCb8WYmssyXag==

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

"""


"""


app_name = "openBVE"
editor_dir = makepath(programfiles, "openBVE")
app_dir = makepath(editor_dir, "openBVE")
app_path = makepath(app_dir,"openBVE.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 = "openBVE"


    # 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 openBVE 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 = "leezer3/OpenBVE"
    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") :
            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()

ea4fe81bac94c318d9753bd6c519ea5a3a42dcafc4bbf6c3707d79d29390aee5 : OpenBVE-1.11.2.7.zip
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
c683b59cb42c457b8152c7b8eee7bdcbec3dcf4241e637f96e8ee57909a5c799 : WAPT/control
98a27c147e60fb9335e7531047df27df6b448c95c7d944891147d3cb082c6d04 : WAPT/icon.png
4b77e4ae6ea50fc14c21024e9bf49adc951c8f02959fdeeba540e1634d59e33f : luti.json
8ebd1d490eb63223e477fe1aafe5ca2f78879e213df8d15884d2100710bfb78a : setup.py
744e3f348d6b974895c5b62aff72547f8bff688aab911172fbab9b60566eca4a : update_package.py