tis-openbve-portable icon

openbve

Paquet d’installation silencieuse pour openbve

1.11.2.2-1

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

package           : tis-openbve-portable
version           : 1.11.2.2-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          : PROD
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      : 117476c2-aa0c-4a24-9a2e-53a34b4330f9
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 98a27c147e60fb9335e7531047df27df6b448c95c7d944891147d3cb082c6d04
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-05T14:00:15.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         : yk0JDZSeKyAvwCRtCMfTYei1q+mKMP+BGqBIXQdZsDN4ESCmw12DtPNm7z+iXpagdjRARgnufTX+poBXiPqE7qBeXgI7opcAuad3rIRaokmikVI6u+lZJsZww5KXOyrE8hcOqsRumPworMB7LiQqpzhpzKeLJPNs8tFafGFRU6Q+b72y1JwRmjve+brR+j9xjd5rJsKoAZdECcao7slQdXAOQ2GGXRN5kip+b3r3rY5D/3qLNE7N/uTokmm3mW3C26/nb4FWL/6zF9QQ1EUzvs/E/dVI8vlK0fsZTtEQHi1jTKxGj7/OLATNoV9b6GrngNoxQ2YYNWrPNczLdiZeYw==

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

7618994d27c327259885a6b7d6d858b41d5e0321558cd0f5ed66940072f156e2 : OpenBVE-1.11.2.2.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
dc1a93a3d4798fa19a6b1a6c5200574f41450a222bbbef98a01260899055f366 : WAPT/control
98a27c147e60fb9335e7531047df27df6b448c95c7d944891147d3cb082c6d04 : WAPT/icon.png
6f15ed806a48a062ee64eccf96ea58949014c5615283eeeee6b6cd007cb71df2 : luti.json
8ebd1d490eb63223e477fe1aafe5ca2f78879e213df8d15884d2100710bfb78a : setup.py
744e3f348d6b974895c5b62aff72547f8bff688aab911172fbab9b60566eca4a : update_package.py