tis-winpaletter-portable icon

winpaletter

Paquet d’installation silencieuse pour winpaletter

1.0.9.4-1

  • package: tis-winpaletter-portable
  • name: winpaletter
  • version: 1.0.9.4-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: MIT/LGPL Dual License
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 5.12 Mo
  • homepage : https://github.com/Abdelrhman-AK/WinPaletter

package           : tis-winpaletter-portable
version           : 1.0.9.4-1
architecture      : all
section           : base
priority          : optional
name              : winpaletter
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : WinPaletter is a portable application that helps you customize Windows features in an advanced way
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : WinPaletter est une application portable qui vous aide à personnaliser les aspects de Windows de manière avancée
description_pl    : WinPaletter to przenośna aplikacja, która pomaga dostosować aspekty systemu Windows w zaawansowany sposób
description_de    : WinPaletter ist eine portable Anwendung, die Ihnen hilft, Aspekte von Windows auf erweiterte Weise anzupassen
description_es    : WinPaletter es una aplicación portátil que le ayuda a personalizar aspectos de Windows de forma avanzada
description_pt    : O WinPaletter é uma aplicação portátil que o ajuda a personalizar aspectos do Windows de uma forma avançada
description_it    : WinPaletter è un'applicazione portatile che aiuta a personalizzare gli aspetti di Windows in modo avanzato
description_nl    : WinPaletter is een draagbare toepassing waarmee je aspecten van Windows op een geavanceerde manier kunt aanpassen
description_ru    : WinPaletter - это портативное приложение, которое помогает вам настраивать различные аспекты Windows
audit_schedule    : 
editor            : 
keywords          : 
licence           : MIT/LGPL Dual License
homepage          : https://github.com/Abdelrhman-AK/WinPaletter
package_uuid      : 2b839e46-e16d-4108-a5c8-2a31176d003e
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 35c543b976010d3ee62be23609bea3c83f0a782f653e42928421f8c1c83b2b54
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-05T07:02:00.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         : uBTtgmxVE7SDYuBTXtaIkDM7l6c3/ocg9bjDLBQtbwbiQyrCO6g6XklHFBRs8egE4jgYLtzTmEkuWQvGtb1vmzy3bmrKiix2sGFk+6I/tW+b4kqjCE6tRlzKu9+evw5NQFQbdF8UKR5HKZApuz9BZqNd1SZNh5MEYmKS3x9CuvF0GkUGu3AuoVj30eIECwNuhL4aLGsgOu53hBAaL/OQ7K5NBmBMhIBQ3mzN8QUSftrHHgGdA/n4MvKcQ+o+Zeiis4ZcMQhSOO6JBoBbHu2QNsEB0T3ReA9QKZniec6QHDNJ20NA4bXk9IYaMea5tccJuXEWvK/rGoA1vJaZPoTD3g==

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

"""


"""


app_name = "winpaletter "
editor_dir = makepath(programfiles, "winpaletter")
app_dir = makepath(editor_dir, "winpaletter")
app_path = makepath(app_dir, "winpaletter.exe")
audit_version = False


def get_installed_version(app_path):
    return get_file_properties(app_path).get("FileVersion", "")


def install():
    # Declaring local variables
    zip_name = glob.glob(f"winpaletter*.zip")[0]

    unzipped_dir = "winpaletter"


    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    print("Extracting: %s to: %s" % (zip_name, unzipped_dir))
    unzip(zip_name, unzipped_dir)
    print('Copy winpaletter to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)
    
    # Creating custom shortcuts
    create_desktop_shortcut(app_name, target=app_path)
    create_programs_menu_shortcut(app_name, target=app_path)

    

def audit():
    # Auditing software
    audit_status = "OK"
    installed_version = get_installed_version(app_path)
    if Version(installed_version) < Version(control.get_software_version()) and audit_version:
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print("%s (%s) is installed" % (app_name, installed_version))
        audit_status = "OK"
    else:
        print("%s is not installed" % app_name)
        audit_status = "ERROR"
    return audit_status


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)
    if dir_is_empty(editor_dir):
        remove_tree(editor_dir)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)

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

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


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
   
    git_repo = "Abdelrhman-AK/WinPaletter"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('.zip') :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.zip'):
        if f != filename:
            remove_file(f)

   
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
710d231daf77dbed12cd1a499ddef228c6a07fa4bae339f8d522edef3fd3142e : WAPT/control
35c543b976010d3ee62be23609bea3c83f0a782f653e42928421f8c1c83b2b54 : WAPT/icon.png
f0469495a2d434e14e50887b28d5361a717f5c8b92baed11b403de1d2c025990 : WinPaletter.zip
146ef1f8882bf8bca85c048d7380c199d4a79bf073a9cd32611c89384b62154b : luti.json
54f238631a5ba209766b4e1fc3f63257a5beebae0f5d258a72b016b20a1107d8 : setup.py
569394d395932affefb3fdc1c379577bd7ff53afa0a94089ec67109de2ed9787 : update_package.py