tis-winpaletter-portable icon

winpaletter

Silent install package for winpaletter

1.0.9.5-1

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a new VirusTotal scan is performed.
If the package passes this last check, it is promoted to PROD and published on the store.

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

package           : tis-winpaletter-portable
version           : 1.0.9.5-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          : PREPROD
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      : e362cf15-a635-4382-913a-59f77c3eb2a0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 35c543b976010d3ee62be23609bea3c83f0a782f653e42928421f8c1c83b2b54
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-09-16T17:00:35.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         : VaabCGmXkp2ZpRLtdg0rm64IbjYLfxzrIqfAOKK9OFfJZKnWbQpyUDn68xJQ/nEjIePYM83u7rRU0WGTL7CaN1fuoIS9QE1A51AcYLHWh6GuX3h4gKxeHXG60PpFZc0IBWlwVjpLQ4O6OR7aQsJ1z0esKy5kJxfFTkpmBwpeerqQy7HLisD/QjbFvJHX6PaWQ96kvsQBF+Rij9SAQ1tyDAnR+zeg/XQMK2u2U0MsPBSuP00bIHPpzwBQAa4BWiWyNXF8eXmr5eN65wMZGIvdt+Q1glYb1snJQDxofg6Qw0u1gJ6MX1WjQXYNhXxJE8YBFGgDDGOa+6cMcx7Xk+iOyQ==

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

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
325e1a474982581fbaca09160094fb2dfcc78885f278a506f14ab3d5585a9154 : WAPT/control
35c543b976010d3ee62be23609bea3c83f0a782f653e42928421f8c1c83b2b54 : WAPT/icon.png
c2e305c720740120f8866ab6683addd2dff6f9ceedc265dcb0ded95eda47d8b9 : WinPaletter.zip
8adda5395c06e322f5d3ddd08a596ae3d7ef1be181b91e2ac901763206394961 : luti.json
54f238631a5ba209766b4e1fc3f63257a5beebae0f5d258a72b016b20a1107d8 : setup.py
569394d395932affefb3fdc1c379577bd7ff53afa0a94089ec67109de2ed9787 : update_package.py