QEMU
Paquet d’installation silencieuse pour QEMU
7.2.0-1
System and network
System and network
- package: tis-qemu
- name: QEMU
- version: 7.2.0-1
- categories: System and network
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ,
- licence: opensource_free,wapt_private
- target_os: windows
- architecture: x86
- signature_date:
- size: 159.79 Mo
- homepage : https://www.qemu.org/
package : tis-qemu
version : 7.2.0-1
architecture : x86
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 : 38e2cde5-dcec-49cb-8559-7a8187c26db3
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 4f205d6e0b5ac723f8bfc134f5e991f855c268c4f3ab0f5dcf3797d789fe17fe
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : VntXHoL7DqdWBCmK60IA9BRtRvcXhJf/1m9Fcj07Tkxqe4qzzA9VBuGVQMgoGTxOj+AuZs7dIAIt+Pa4tsGh8g/GW4R23vv0l1EKFx4rifo+4VxKXp32S+qvTZAVHtDR1WFRdooNf1B+6cNsMvpmxlM+5VLIt5AfLykXgG5QtMZsZ9uFrTFIQxd/AJHJ8OusBlcqJH9D/tvHh3bPdwgYCjVnOEGdcr8hbHz6qXHPCJeP30x0fiBrbwjhoAwCWoxY5Y41bKhUDYn9u+9M/JBZrEssXOcL0/g6d0M6EDOQHZT4WF0Wzuwlj+du5es0PXrGCikwpI9arS/CJM4Q9s8Tjg==
signature_date : 2024-09-03T13:00:46.992850
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()
{
"key":"QEMU",
"name":"QEMU",
"version":"7.2.0",
"install_date":"",
"install_location":"",
"uninstall_string":"\"C:\\Program Files (x86)\\qemu\\qemu-uninstall.exe\"",
"publisher":"QEMU Community",
"system_component":0,
"win64":false
}
"""
# 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/w32/"
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-w32-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-w32-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()
cfe170c6af9d261e7cc8c48afd748630c59a63e308efb18651da38002b7ace5c : qemu-w32-setup-20221230.exe
a000f1e7a1e46224987250a787c6a6f83b5ad32c47c669a843c6b5116ad69bdb : setup.py
8ff1bc09a9c46339d701eef1b026df9d1a4a0ec3264d5d36ac0ff30aa4f892fd : update_package.py
4f205d6e0b5ac723f8bfc134f5e991f855c268c4f3ab0f5dcf3797d789fe17fe : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
8a132df2461dd4333eb53c7bfcf1d4c5ba4aa2fa04e01a9349e5d88949ae94ad : luti.json
a0f1f8a7abde2585034e3eb1a6f0dfe577e25afcae3a2a872a17c425d7a35c27 : WAPT/control