tis-midimt icon

MIDIMT

Paquet d’installation silencieuse pour MIDIMT

1.0.6.8-1

  • package: tis-midimt
  • name: MIDIMT
  • version: 1.0.6.8-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: MIT License
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 32.91 Mo
  • homepage : https://midi-mt.bitbucket.io/

package           : tis-midimt
version           : 1.0.6.8-1
architecture      : x86
section           : base
priority          : optional
name              : MIDIMT
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : High Level Application Driver for USB MIDI Control Surface
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Pilote d'application de haut niveau pour surface de contrôle MIDI USB
description_pl    : Sterownik aplikacji wysokiego poziomu dla powierzchni sterującej USB MIDI
description_de    : High-Level-Anwendungstreiber für USB-MIDI-Steueroberflächen
description_es    : Controlador de aplicaciones de alto nivel para superficie de control MIDI USB
description_pt    : Controlador de aplicação de alto nível para superfície de controlo MIDI USB
description_it    : Driver applicativo di alto livello per la superficie di controllo MIDI USB
description_nl    : Stuurprogramma op hoog niveau voor USB MIDI Control Surface
description_ru    : Высокоуровневый драйвер приложения для USB MIDI Control Surface
audit_schedule    : 
editor            : 
keywords          : 
licence           : MIT License
homepage          : https://midi-mt.bitbucket.io/
package_uuid      : 1a1e1fc5-8868-4409-adfb-437f3be5c99c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 3ab9bf38e0905f551b55ff31ddb420c96537e062bf7c40bf8e3feed37a59ec85
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : rp9K+rmBzpgib8Dx8UNabSc7SVOgiaXb8Ne/rYZ8Fcds2TPrQ7xvBzMB+pvKUcX2qdcF1qVoRtjSGR7CTzTWPT20/HTbQBrpZanHKCP7HchFdSlzqCNYf7Y6L6H7p0R4pdHygasATzi0uAXGjIGUfah72mPq8SIyTcN90Tbdq7dfP6G49Xy1k+yvRYOQUK1b8LC3FH3cnmwfNFCIkyu33kjv465pgeVDcIY5JaBmwMB1ByaqBqXNJ78RbBjhI2m5T4WJvq/ucUL4ccs1l4s0K0nlUq22ElSzuhJgrbe5zIGNM2lvLEeRii1IX4Mh3MA7M1Nl/JCr+2iWa/SZdRTOSQ==
signature_date    : 2024-07-31T08:00:09.499740
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

# -*- 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('MIDIMT_*.msi')[0]
    # Installing the software
    
    install_msi_if_needed(bin_name)



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




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    dict_arch  = {
        "x64" : "MIDIMT_x64",
        "x86" : "MIDIMT_x86"
    }
    url_base = "https://midi-mt.bitbucket.io/"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "div","class","buttons-wrapper", proxies=proxies)
    msi_file = None
    for div in divs:
        if msi_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.msi') and dict_arch[control.architecture] in link['href']:
                href = link['href']
                msi_file = href
                download_url = msi_file
                latest_bin = msi_file.split('/')[-1]
                version = latest_bin.split("_")[-1].replace(".msi","")
                break


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.zip'):
        if f != latest_bin:
            remove_file(f)

           
    version = get_version_from_binary(latest_bin)
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    

c6f5b6d670ab8f16d0ffd2228b2825d6fde9e0ea4cfd84a1059101d90615cb2f : MIDIMT_x86_1.0.6.8.msi
4277cf03cba1369fe82c762f619cdbd16a7a6b3197a2967c08a6c13245ab6190 : setup.py
5118ed007afb29f13417367cb014a4d657c2a6d517bdfda09cd50447e60dd9fd : update_package.py
3ab9bf38e0905f551b55ff31ddb420c96537e062bf7c40bf8e3feed37a59ec85 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d29e2065627ab5c60f597ab4787e9fdf9c6aa54133b130932b1ca69d939064e5 : luti.json
2a32608c10d522dde35e0b47b10b9f8513a18521d67b03e7bd709cd5878ecb00 : WAPT/control