tis-bleachbit icon

BleachBit

Silent install package for BleachBit

5.0.0-1

  • package: tis-bleachbit
  • name: BleachBit
  • version: 5.0.0-1
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 16.39 Mo
  • homepage : https://www.bleachbit.org/

package           : tis-bleachbit
version           : 5.0.0-1
architecture      : all
section           : base
priority          : optional
name              : BleachBit
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Clean up your system and free up disk space
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Nettoyez votre système et libérez de l'espace disque
description_pl    : Oczyść system i zwolnij miejsce na dysku
description_de    : Bereinigen Sie Ihr System und geben Sie Speicherplatz frei
description_es    : Limpia tu sistema y libera espacio en disco
description_pt    : Limpe o seu sistema e liberte espaço no disco
description_it    : Pulire il sistema e liberare spazio su disco
description_nl    : Ruim je systeem op en maak schijfruimte vrij
description_ru    : Очистите систему и освободите место на диске
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://www.bleachbit.org/
package_uuid      : fd209497-9518-4d0a-90ab-45ac4632633b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9fdb4ee281b7cbb9945b16bf09d9e58df5ea97c221b0f24527a63d3d7d91bfd1
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-10T08:00:14.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         : qqt/E8j1uHTnnSCBdweLiU1nn1+w6GMuJRHDuneC4Oio/5IW2F+9keJ2EM7cWauyoo27acxn2i5LB4AeLLXMHEAfrj8ndcPeANWTD0J6GXtuUiPJSCREqaHdLj55CP8Y2Qp/GIYucHER+lT1fZdnRaYKHAce6f36BqoqPNiJer0L9q41kUFHnBme/+S3hUvhUCLpZdql0Te0fqt7eKqC2wOsrvuFWm8uRUH0AkaTrFk9vzRTk00yeOWli8ZOt/1bE4nK0WFSvq1Dm2oDtk6EbKVZIKiFWVbTXesAV0WE456y9qn0qm0eMRs8FTWD+Xz/t7NCpdJXdjIVV5N9uEosXA==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# 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('BleachBit-*-setup.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S /allusers ',
        key='BleachBit',
        min_version=control.get_software_version(),
    )




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



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

  
    url_base = "https://www.bleachbit.org/download/windows"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "li", proxies=proxies)
    exe_file = None
    for div in divs:
        if exe_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.exe'):
                href = link['href']
                exe_file = href
                latest_bin = exe_file.split('=')[-1]
                download_url = "https://download.bleachbit.org/" + latest_bin
                version = latest_bin.split('-')[-2]
                break


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    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)


    # Deleting outdated binaries
    for f in glob.glob('*.zip'):
        if f != latest_bin:
            remove_file(f)

           
    
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

3676b7740a6518572dbd42ca178a582a15e3cc11e841da91d10ca03c4db9b154 : BleachBit-5.0.0-setup.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
e1342a3d8f9ab13d3c0c5e90809c137ed2deb99b2da644805d49651991c4c04f : WAPT/control
9fdb4ee281b7cbb9945b16bf09d9e58df5ea97c221b0f24527a63d3d7d91bfd1 : WAPT/icon.png
7e7f358991fe018932ee73221af73cfd03683347bb8ec6cf5692bd095a02aaa3 : luti.json
8148bee5c2185ddfa9013aebec8cacd223134eff8997bf465e6f5f35c2e0341b : setup.py
dac1b255f57ec4f80b4f19de5708aadf49f84530272e757e553260e0ea6b2b59 : update_package.py