tis-bleachbit icon

BleachBit

Silent install package for BleachBit

4.6.2-1

  • package: tis-bleachbit
  • name: BleachBit
  • version: 4.6.2-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: 12.16 Mo
  • homepage : https://www.bleachbit.org/

package           : tis-bleachbit
version           : 4.6.2-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      : e95801e0-4d20-4c17-b1ca-37bddc5c0f3d
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    : 2024-10-13T08:00:16.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         : ndQDNADp9c7uQBN0KN29hW22QVT9BTySC+R0Zuym9qe4l1Z7Nn3RUeTAUDarGA6zokG/tOOu2Qj71n4tvt3Gaiq1S99by5GzlnRTNBy/iALY8y/KqFgPIjq6s5XYt3EOg6KAdwjPIDctcfJHpHdfDnlliMfpHLPugSTbkbuKFtKRMykX07jvKHH6lMQ2nuS6ZhTMi9eaJXIlSIX6iSXw1EJbClntYfBrsF2rFvt9XkfxcOFoBOp5anUs3X054Ma0IQ/UAUBOcbejzGRrsASZPACfjU5ZH+hNdNT+NJ2Xp1Qwgqt7JMeX9RBD+JR9s0WqQQ3sjaYSCTfmyADD8UH5Sg==

# -*- 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()    
        

43bc44163015e62c32a344f354d5d16ce3e3d45d402e9d52b79079cc7d9b4d05 : BleachBit-4.6.2-setup.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
771f8c5024f30bba875114cda407ee19bac5c1bcc4aaff0078be2e00c385b86b : WAPT/control
9fdb4ee281b7cbb9945b16bf09d9e58df5ea97c221b0f24527a63d3d7d91bfd1 : WAPT/icon.png
254d74f20116e82597ae6b33bf85b499d48f8d1a72d564548f8590e8ff806c46 : luti.json
8148bee5c2185ddfa9013aebec8cacd223134eff8997bf465e6f5f35c2e0341b : setup.py
dac1b255f57ec4f80b4f19de5708aadf49f84530272e757e553260e0ea6b2b59 : update_package.py