tis-virtio icon

VirtIO Drivers

Silent install package for VirtIO Drivers

0.1.262-2

  • package: tis-virtio
  • name: VirtIO Drivers
  • version: 0.1.262-2
  • categories: Drivers
  • maintainer: WAPT Team,Jimmy PELÉ
  • editor: Red Hat, Inc.
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 3.55 Mo

package           : tis-virtio
version           : 0.1.262-2
architecture      : x64
section           : base
priority          : optional
name              : VirtIO Drivers
categories        : Drivers
maintainer        : WAPT Team,Jimmy PELÉ
description       : VirtIO Drivers
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Red Hat, Inc.
keywords          : 
licence           : 
homepage          : 
package_uuid      : 66b6f938-226a-4d00-a170-4bb7cca222ee
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 56874702c1f83ba25b6e5aadd3433770deb7bc5891baff85c8aa4b5707225326
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : WlQQbLRmfjndtibA4MyQqo5/DrzB3Jgsr3scJ3UFHsWQUN4kMQN7MTYrJ8aZC+DbHtGNZNw4WtZ1A6wn3uP5UiBbSf8rOASKmrRKFKxcuYTFF04RJxA7E6Zr/i6jVkgysyimMD2q4ggfCfWUrmJ5qXaH3ID/SpCyZltgzaVQLaGi/zDsCAIbzKKW3YdJT3wqXYpGweTR+K+QAz4yOFgV65YeBKdUobwiT+y0Z4KtzDiG6XrXZ6ZQoEEavnOc8Zqs16VIKIUOW5VihPUKKhHKFPC5aTUSJnbs5L4xIqGv7MlWeGLa5Q3jZgoYksNvwu3JEpXh870E9B4BxrrIOCtSQg==
signature_date    : 2024-08-28T13:05:18.157585
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 *


def install():
    # Specific app values
    package_version = control.version.split("-")[0]
    bin_name = "virtio-win-gt-x64-%s.msi" % package_version

    # Add "Red Hat, Inc." to Trusted Publishers
    run('"%s" -addstore TrustedPublisher "%s"' % (makepath(system32, "certutil.exe"), makepath(basedir, "redhat-drivers.cer")))
    run('"%s" -addstore TrustedPublisher "%s"' % (makepath(system32, "certutil.exe"), makepath(basedir, "redhat-drivers2.cer")))

    # Installing the package
    install_msi_if_needed(bin_name)

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

# Declaring specific app values (TO CHANGE)
real_bin_name = "virtio-win-gt-x64.msi"
bin_name_string = "virtio-win-gt-x64-%s.msi"


def update_package():
    print("Download/Update package content from upstream binary sources")

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system() == "Windows" and isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxy = {"http": proxywapt, "https": proxywapt}

    # Specific app values
    url_dl = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/%s" % real_bin_name

    # Downloading latest binaries
    if isfile(real_bin_name):
        remove_file(real_bin_name)
    if not isfile(real_bin_name):
        print("Downloading: " + real_bin_name)
        wget(url_dl, real_bin_name, proxies=proxy)

        # Get version from file
        version = get_msi_properties(real_bin_name)["ProductVersion"]
        os.rename(real_bin_name, bin_name_string % version)
        # Change version of the package
        control.version = "%s-%s" % (version, int(control.version.split("-", 1)[1]) + 1)
        control.save_control_to_wapt()
        print("Changing version to " + control.version + " in WAPT\\control")
        print("Update package done. You can now build-upload your package")
    else:
        print("This package is already up-to-date")

051ad353a3fdc12faa3b2500401cb543aa273c36dd356aac558e263a6b68b0ba : redhat-drivers.cer
3c49efe4ce3720a81bafc7acce584fa34ee2dea3e59257199b63f6c88f3e5db0 : redhat-drivers2.cer
509d3db36ef4192010222e6debf898108c5ab7d0295626d16e144dc0666d4772 : setup.py
0423d9609baf5abacddfc22df997b6f4533babb2185f089825e5c91dabfd6956 : update_package.py
56874702c1f83ba25b6e5aadd3433770deb7bc5891baff85c8aa4b5707225326 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
74c27e0801e96a5927504098bf925679a282823454bf7aebdc9ee8d8d717f3c9 : luti.json
62e1d4eba1ade52a3d2f5f9d5a5ffb7b8b492072f546693fe50de0fd006cf081 : virtio-win-gt-x64-0.1.262.msi
85984173887c236f61c82a15b6bd9cb0c52f4edd44fbc3a9480b6a4e33fde0e0 : WAPT/control