tis-windirstat

2.1.1-8
WinDirStat (Windows Directory Statistics) is a disk usage statistics viewer and cleanup tool for Windows. On start up, WinDirStat reads the whole directory tree once and then presents it in three useful views
1926 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-windirstat icon
  • package : tis-windirstat
  • name : WinDirStat
  • version : 2.1.1-8
  • categories : System and network,Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Ingrid TALBOT
  • editor :
  • licence :
  • locale : all
  • target_os : windows
  • impacted_process : windirstat
  • architecture : x86
  • signature_date : 2024-12-15 21:24
  • size : 2.36 Mo
  • installed_size : 4.34 Mo
package           : tis-windirstat
version           : 2.1.1-8
architecture      : x86
section           : base
priority          : optional
name              : WinDirStat
categories        : System and network,Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Ingrid TALBOT
description       : WinDirStat (Windows Directory Statistics) is a disk usage statistics viewer and cleanup tool for Windows. On start up, WinDirStat reads the whole directory tree once and then presents it in three useful views
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.4
sources           : 
installed_size    : 4342208
impacted_process  : windirstat
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : e5b56222-2487-4c13-9890-3407020596b8
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9522a2b913ddf66016280e78506a7eaa94f3c23a75b0fa1a1d5d1bdaed228e66
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-15T21:24:48.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         : Tcaym5NaJO0grVcKlN8CGWARkjvSw3rthrdmo098ZF3Idh1S2wlakYupBtx6ap5USCyAxi651MFEDueD8T68Bvlh7j8h84MFyYBP612pU9oAofsu68rW0BFZ2crGPxZ2e3MgGoy6wE0qCZBcivIzp8XQ9WFqins7kJr5CGFHRAyZZgAaHcXaTeJhR3XB//j/1jXoM3ZoJ1vjcE6S4gMGqrQOsN7MwVuOK62OyO8ghOSgdyqA5VIGm+P5H0+MO1ntlzI1No1X/xBQHQQKLEG+y1r8XivrWCZYV7qkGw4/v1HIR8KTiPybh4kJYmNcBDGdLa3KRf7hk0LyGR0n2cD84g==
# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    # Declaring local variables
    bin_name = glob.glob('WinDirStat*.msi')[0]

    uninstall_older_version()

    # Installing the software
    install_msi_if_needed(
        bin_name,
        name="WinDirStat",
        min_version=control.get_software_version()
    )


def uninstall_older_version():

    killalltasks(ensure_list(control.impacted_process))

    for soft in installed_softwares(name=control.name):
        uninstall_key = soft['key']
        if Version(soft['version']) < Version(control.get_software_version()):
            run(uninstall_cmd(uninstall_key))
            wait_uninstallkey_absent(uninstall_key)
# -*- coding: utf-8 -*-
from setuphelpers import *
import waptlicences


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

    api_url = "https://api.github.com/repos/windirstat/windirstat/releases/latest"

    update_dict = {
        "windows-x64": "-x64.msi",
        "windows-x86": "-x86.msi"
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]
    releases_dict = wgets(api_url, proxies=proxies, as_json=True)

    for asset in releases_dict["assets"]:
        if asset["name"].endswith(update_dict[os_type]):
            download_url = asset["browser_download_url"]
            latest_bin = download_url.rsplit("/", 1)[-1]
            latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
            version = releases_dict["name"].split(" ", 1)[-1]
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    expected_issuer = "Open Source Developer, Bryan Berns"
    sign_name = waptlicences.check_msi_signature(latest_bin)[0]
    if sign_name != expected_issuer:
        error(f'Bad issuer {sign_name} != {expected_issuer} ')

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated





38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
0ae37ad096f86fd4586668e77155549067243bb73fbd5d9939567790e0cdd2ab : WAPT/control
9522a2b913ddf66016280e78506a7eaa94f3c23a75b0fa1a1d5d1bdaed228e66 : WAPT/icon.png
3872cf9e0f750a1be6ca1427b01565f1db6ff898ee1b34ce757a39bbf6294e6c : WinDirStat-x86.msi
a6c2b31a5fee22cc3962099e2d058c426ce8e49aa5757946a743fd7d785cc5ca : luti.json
b8e3884b9758033c604ea9303de967fc6586f7151d2a535574f27a7dfc4caa78 : setup.py
a6952fbca33e102ad7c8fc5a4afc27bf1e96373ea71c88603b034bb0193108e9 : update_package.py