tis-rufus

4.5-10
Rufus est un utilitaire permettant de formater et de créer des média USB démarrables, tels que clés USB, mémoire flash, etc.
5647 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-rufus icon
  • package : tis-rufus
  • name : Rufus
  • version : 4.5-10
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor : Pete Batard
  • licence : GPLv3+
  • locale : all
  • target_os : windows
  • impacted_process : rufus
  • architecture : all
  • signature_date : 2024-05-27 12:00
  • size : 1.49 Mo
  • installed_size : 1.38 Mo
  • homepage : https://rufus.ie/
package           : tis-rufus
version           : 4.5-10
architecture      : all
section           : base
priority          : optional
name              : Rufus
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Rufus is a utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/pbatard/rufus/releases
installed_size    : 1384448
impacted_process  : rufus
description_fr    : Rufus est un utilitaire permettant de formater et de créer des média USB démarrables, tels que clés USB, mémoire flash, etc.
description_pl    : Rufus to narzędzie, które pomaga formatować i tworzyć bootowalne dyski USB, takie jak klucze USB/pendrivy, karty pamięci itp.
description_de    : Rufus ist ein Werkzeug, welches dabei hilft, bootfähige USB-Laufwerke zu erstellen, wie beispielweise USB-Keys, Speichersticks usw.
description_es    : Rufus es una utilidad que le ayuda a formatear y crear soportes USB de arranque, como «pendrives», tarjetas de memoria, etcétera.
description_pt    : Rufus é um utilitário que ajuda a formatar e criar unidades flash USB de arranque, tais como chaves/pendrives USB, cartões de memória, etc
description_it    : Rufus è un'utility che aiuta a formattare e creare unità flash USB avviabili, come chiavi/pendrive USB, chiavette di memoria, ecc
description_nl    : Rufus is een hulpprogramma dat helpt bij het formatteren en maken van opstartbare USB flash drives, zoals USB sleutels/pendrives, memory sticks, enz
description_ru    : Rufus - это утилита, которая помогает форматировать и создавать загрузочные USB-накопители, такие как USB-носители, карты памяти и т.д
audit_schedule    : 
editor            : Pete Batard
keywords          : USB,boot,utility,create,flash,drives,drive
licence           : GPLv3+
homepage          : https://rufus.ie/
package_uuid      : b990fb6b-d37e-4669-8936-d2abdad13a0d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/pbatard/rufus/blob/master/ChangeLog.txt
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 666751cd65f0e0345484cb7cc7cf5bbaf35bd6952c0ecbd25484c00c3c716efb
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : IRcQANsegi8+/J9uEyKW1OhJF0nxIwdvm/EkkHfNRKZZazl04f/bdQbDxdTw3SfedXN1H3Tvr/t+/N9bwLnpKwX48grc8d06kCOlVebW6uW2WbKqwwJdMPLxEjRVbnDvJ423FhTEgWO/pKNh8NmRy18I5r/Gan7qjAlKFsc5WwF98nTMM/2Ii7zroLGDM9H3DYVJC6TgvTm7bGRFR4i5axKdUvPmrd7V4wr+yR27kS8Kk9nUr6WXogw9S4HZZVAkgjoEc+IMLKvtNURlSi4IW6LLAfnvNyo8CrgrOm/pyGZhsD4Fo1HPhuptrWlqI87TLoWKfQDXoj4K4caFK4LH/g==
signature_date    : 2024-05-27T12:00:08.050507
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 *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name = "rufus.exe"
app_name = "Rufus"
app_dir = makepath(programfiles32, app_name)
app_path = makepath(app_dir, bin_name)


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    app_path = makepath(app_dir, bin_name)

    # Getting installed software version
    if isfile(app_path):
        installed_version = get_version_from_binary(app_path)
    else:
        installed_version = None

    # Installing software
    print("Installing: %s" % app_name)
    if installed_version is None or installed_version < package_version or force:
        killalltasks(control.get_impacted_process_list())
        mkdirs(app_dir)
        if isfile(app_path):
            remove_file(app_path)
        print("Copying: %s to: %s" % (bin_name, app_dir))
        filecopyto(bin_name, app_dir)

        # Creating shortcuts
        create_desktop_shortcut(app_name, app_path)
        create_programs_menu_shortcut(app_name, app_path)

        # Adding software to "list-registry"
        print("Registering %s to Windows Registry" % app_name)
        register_windows_uninstall(control, win64app=False)
        register_uninstall(app_name, icon=app_path)
    else:
        print("%s already installed. Skipping" % app_name)


def uninstall():
    # Uninstalling software
    killalltasks(control.get_impacted_process_list())
    if isdir(app_dir):
        remove_tree(app_dir)
    unregister_uninstall(app_name)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)


def session_setup():
    print("Disabling: update-check on start-up")
    registry_set(HKEY_CURRENT_USER, r"SOFTWARE\Akeo Consulting\Rufus", "UpdateCheckInterval", 0xFFFFFFFF, type=REG_DWORD)


def audit():
    # Declaring local variables
    package_version = control.get_software_version()

    # Getting installed software version
    if isfile(app_path):
        installed_version = get_version_from_binary(app_path)
    else:
        installed_version = None

    # Auditing software
    print("Auditing: %s" % control.package)
    if installed_version is None or installed_version < package_version:
        print("%s version is incorrect (%s)" % (app_name, installed_version))
        return "ERROR"
    else:
        print("%s is installed in correct version (%s)" % (app_name, installed_version))
        return "OK"
# -*- coding: utf-8 -*-
from setuphelpers import *
import json

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name = "rufus.exe"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    git_repo = "pbatard/rufus"
    api_url = "https://api.github.com/repos/%s/releases/latest" % git_repo
    bin_end = bin_name.split(".")[-1]
    avoid_bin_end = "p.exe"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if download["name"].endswith(bin_end) and download["name"] != avoid_bin_end:
            download_url = download["browser_download_url"]
            break

    version = json_load["tag_name"].replace("v", "")
    latest_bin = bin_name

    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % download_url)

    # Downloading latest binaries
    if isfile(bin_name):
        remove_file(bin_name)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if not version_from_file.startswith(version) and version_from_file != "":
            print("Changing version to the version number of the binary")
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return result
75f1059e6c32cfc7e7b4c03b82ba783be2772fe258bef592374de4a424b5742a : setup.py
 : __pycache__
57e592a44a9a3bf92066479b60506617370ecc26d9a43d84f1215c9111f13cd2 : update_package.py
c6e6cdba209f899e5087f1a1a4babc759414b4a687b60ba4bce62b6b37e8e82b : rufus.exe
666751cd65f0e0345484cb7cc7cf5bbaf35bd6952c0ecbd25484c00c3c716efb : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
94372fc025725b0b3b5b9aa7feb278f3746f78bc159ce000113e93feab2690d4 : luti.json
d4a68f7920990e7f8dc6fbed2dacba0b71144caf54e9ba98b95c00be20261924 : WAPT/control