tis-qemu icon

QEMU

Paquet d’installation silencieuse pour QEMU

9.1.92-1

  • package: tis-qemu
  • name: QEMU
  • version: 9.1.92-1
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ,
  • licence: opensource_free,wapt_private
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 181.93 Mo
  • homepage : https://www.qemu.org/

package           : tis-qemu
version           : 9.1.92-1
architecture      : x64
section           : base
priority          : optional
name              : QEMU
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ,
description       : QEMU is a generic, open source machine emulator and virtualizer
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : QEMU est un émulateur et un virtualiseur de machine générique et open source
description_pl    : QEMU to ogólny emulator i wirtualizator maszyn typu open source
description_de    : QEMU ist ein generischer Open-Source-Maschinenemulator und -Virtualisierer
description_es    : QEMU es un emulador y virtualizador de máquinas genérico y de código abierto
description_pt    : O QEMU é um emulador e virtualizador de máquinas genérico e de código aberto
description_it    : QEMU è un emulatore di macchine e un virtualizzatore generico e open source
description_nl    : QEMU is een generieke, open-source machine-emulator en virtualiser
description_ru    : QEMU - это универсальный эмулятор и виртуализатор машин с открытым исходным кодом
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_private
homepage          : https://www.qemu.org/
package_uuid      : 33226a1e-156a-4a7e-9db4-d09eb900cfd9
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4f205d6e0b5ac723f8bfc134f5e991f855c268c4f3ab0f5dcf3797d789fe17fe
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-25T00:03:44.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         : A5WKNV3we2k0TS3xnm4OMc59NpFGwcHQHkvKpAtPK7IMvlDWPBQ8Zq30WRMGf/kXJaAN5UMORVH+mT/5ZXsYUah8F7B5yELM/jHcZ6QEyQLK9XPtHACQvQuosBWysPT1f2ULaEoVI6DnU8gZFmEF4OcR7ySwaKdh2jU6BcaivDUxC7wSJzb2Udav3aZgfty1PbWdvMsJ5Kc2+prIT2mlJAuYA4cGRlo2XXv1B5S1XR8Cng9R+0kV8uHEJBAHM4l++8gokvR82l6K861CMtI7uNzVMwA5Rk17DC07P9rDSlqRMalJRuMA0Y8HFdnvziEBlw0x/jXIUgSGGVkq366iBQ==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"QEMU",
   "name":"QEMU",
   "version":"9.0.94",
   "install_date":"",
   "install_location":"",
   "uninstall_string":"\"C:\\Program Files\\qemu\\qemu-uninstall.exe\"",
   "publisher":"QEMU Community",
   "system_component":0,
   "win64":true
  }

"""
# 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("qemu-*.exe")[0]
    # Installing the software

    install_exe_if_needed(bin_name, silentflags="/S", key="QEMU", min_version=control.get_software_version(),)

from setuphelpers import *
import re
import requests


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

    # Getting the latest available year
    base_url = "https://qemu.weilnetz.de/w64/"
    index = wgets(base_url, proxies=proxies)

    # Find the latest year directory
    year_pattern = re.compile(r'<a href="(\d{4}/)">')
    years = sorted(year_pattern.findall(index), reverse=True)

    if not years:
        print("No available year found.")
        return False

    latest_year = years[0].strip("/")

    # Get the index page of the latest year
    year_index = wgets(base_url + latest_year + "/", proxies=proxies)

    # Find the latest version in that year
    version_pattern = re.compile(r"qemu-w64-setup-(\d+)\.exe")
    versions = sorted(version_pattern.findall(year_index), reverse=True)

    if not versions:
        print("No available versions found.")
        return False

    latest_version = versions[0]
    latest_bin = f"qemu-w64-setup-{latest_version}.exe"
    download_url = base_url + latest_year + "/" + latest_bin
    # Construct the version string in the format YYYY.M.D
    version = latest_version[:4] + "." + str(int(latest_version[4:6])) + "." + str(int(latest_version[6:8]))

    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)

    # remove files
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

    version =get_version_from_binary(latest_bin)
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
16d566f62bdc00ef156404089b288f201f8eb72a48d78b83e7592fa1b0b694ea : WAPT/control
4f205d6e0b5ac723f8bfc134f5e991f855c268c4f3ab0f5dcf3797d789fe17fe : WAPT/icon.png
eda7853e234ac85fe6d88fd926a3fdd3a42c4b1d5e7d5d95cffe0d9c4dcadfb8 : luti.json
58f9e109ecdc27c208986a0d983c4a92163f326583d8a03c39d4f84d118cde6a : qemu-w64-setup-20241219.exe
b3fbfee19e794f195f8728245e6d7c8ada59424c606b7207de8da457cfdfb960 : setup.py
b768059d146f838d506ed0e4f8ef28e3e2eb836fdd2d437557e387c543536fcd : update_package.py