tis-klogg icon

klogg

Silent install package for klogg

22.6-2
Development
Development

  • package: tis-klogg
  • name: klogg
  • version: 22.6-2
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 9.24 Mo

package           : tis-klogg
version           : 22.6-2
architecture      : x86
section           : base
priority          : optional
name              : klogg
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Klogg is a multi-platform GUI application that helps browse and search
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Klogg est une application GUI multiplateforme qui permet de naviguer et de rechercher
description_pl    : Klogg to wieloplatformowa aplikacja GUI, która pomaga przeglądać i wyszukiwać
description_de    : Klogg ist eine plattformübergreifende GUI-Anwendung, die das Durchsuchen und Suchen
description_es    : Klogg es una aplicación GUI multiplataforma que ayuda a navegar y buscar
description_pt    : O Klogg é uma aplicação GUI multiplataforma que ajuda a navegar e a pesquisar
description_it    : Klogg è un'applicazione GUI multipiattaforma che aiuta a sfogliare e a ricercare
description_nl    : Klogg is een multi-platform GUI-toepassing die helpt bij het bladeren en zoeken naar
description_ru    : Klogg - это многоплатформенное приложение с графическим интерфейсом, которое помогает просматривать и искать
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : 
package_uuid      : 6a5fced2-c5b2-436c-b073-f6ba2181ed81
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 983711ccb2bf3a1cabeaafd76b247efdcbc2ff76f1a6a48ee714b739c0994065
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-09-30T09:52:46.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         : qJd9dU2aSYEEUS5WcBEMQfCGUsr7jD0VRmGGTijmSsC+mFZhCnTwFFueMFuSrKN51zY7n5TzToQlV2z/y5Jhgy+Cg0tjQO0g09BbJLqySyf/NbQAsCWZ6yZKVjDRGK050J+IR5aQ11QcefJjUyn9KSMGWdFVDnc/PUP6XKPzxlKIFGHLKjkgF82bKkxCY6X6xP7q2/Zuf30uw0Kv8SDTB1wLw6InDue7AP75txczLNEzrcPT6GvEwB/tqqzSCb4aiRveGpimyGRInpTA7u3ISBrLjJiqslo1vbpnLPu9lsrJrqHyWY4rgRCf6qWmimkAwfjUhwxFHp3jjjUNUS5xMw==

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



# -*- 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()
    
    dict_arch = {
        "x64": "-x64-Qt5-setup.exe",
        "x86": "-x86-Qt5-setup.exe"
    }
    git_repo = "variar/klogg"
    url_api = "https://api.github.com/repos/%s/releases" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    
    # Load JSON response from API
    json_load = json.loads(wgets(url_api, proxies=proxies))

    # Iterate through each release in the JSON response
    for release in json_load:
        # Check if the release contains assets
        for download in release["assets"]:
            if download["browser_download_url"].endswith('.exe') and dict_arch[control.architecture] in download["browser_download_url"]:
                url_dl = download["browser_download_url"]
                version = release["tag_name"].replace("v", "")
                filename = download["name"]
                break

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

    # Clean temporary files
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)


    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
640f6da5a63549e35c61203510b86839156621006eee70f6fe66e6ac266bae89 : WAPT/control
983711ccb2bf3a1cabeaafd76b247efdcbc2ff76f1a6a48ee714b739c0994065 : WAPT/icon.png
4baf7299a5efca6d809191271e1b3518147faef72fd56144270086b2f24f939c : klogg-22.06.0.1289-Win-x86-Qt5-setup.exe
344ea9c20b46d0469c763e438612113468af9bdb06f70b2561956e01e9cd61f5 : luti.json
35ee44b5e70f71c48e26310f6b0e5cd4a42f5d03b560094b23d1e7a4dd9607e4 : setup.py
fd8b63abdf368ca6627b72b48a71810944b6cc03c0c3b044c6100cba7d15a7b8 : update_package.py