tis-kate icon

Kate

Paquet d'installation silencieuse pour Kate

26.8-3

  • package: tis-kate
  • name: Kate
  • version: 26.8-3
  • maintainer: Jordan Arnaud
  • licence: GNU LIBRARY GENERAL PUBLIC LICENSE
  • target_os: darwin
  • impacted_process: kate
  • architecture: arm
  • signature_date:
  • size: 101.63 Mo
  • homepage : https://kate-editor.org/

package           : tis-kate
version           : 26.8-3
architecture      : arm
section           : base
priority          : optional
name              : Kate
categories        : 
maintainer        : Jordan Arnaud
description       : Kate is a programmer's text editor by KDE. It features stuff like codefolding, syntaxhighlighting, dynamic word wrap, an embedded console, an extensive plugin interface and some prelimentary scripting support
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 
sources           : https://cdn.kde.org/ci-builds/utilities/kate/
installed_size    : 
impacted_process  : kate
description_fr    : Kate est un éditeur de texte pour programmeurs créé par KDE. Il propose des fonctionnalités telles que le pliage de code, la mise en évidence de la syntaxe, l'habillage dynamique des mots, une console intégrée, une interface de plugin étendue et un support de script prélimentaire
description_pl    : Kate to edytor tekstu dla programistów stworzony przez KDE. Oferuje takie funkcje jak składanie kodu, podświetlanie składni, dynamiczne zawijanie słów, wbudowaną konsolę, rozbudowany interfejs wtyczek i wstępną obsługę skryptów
description_de    : Kate ist ein Texteditor für Programmierer von KDE. Er bietet Funktionen wie Codefolding, Syntaxhighlighting, dynamischen Zeilenumbruch, eine eingebettete Konsole, eine umfangreiche Plugin-Schnittstelle und einige zusätzliche Skriptunterstützung
description_es    : Kate es un editor de texto para programadores de KDE. Cuenta con cosas como codefolding, syntaxhighlighting, dynamic word wrap, una consola incrustada, una extensa interfaz de plugins y algún soporte de scripting preliminar
description_pt    : Kate é um editor de texto para programadores do KDE. Possui funcionalidades como codefolding, syntaxhighlighting, word wrap dinâmico, uma consola incorporada, uma extensa interface de plugins e algum suporte de scripting preliminar
description_it    : Kate è un editor di testo per programmatori di KDE. Presenta elementi come il codefolding, l'evidenziazione della sintassi, il word wrap dinamico, una console integrata, un'ampia interfaccia di plugin e un supporto prelimentare per lo scripting
description_nl    : Kate is een teksteditor voor programmeurs van KDE. Het heeft dingen zoals codefolding, syntaxishighlighting, dynamische woordomloop, een ingebedde console, een uitgebreide plugin-interface en wat aanvullende ondersteuning voor scripts
description_ru    : Kate - это текстовый редактор для программистов от KDE. В нем есть такие функции, как сворачивание кода, подсветка синтаксиса, динамическое обертывание слов, встроенная консоль, обширный интерфейс плагинов и предварительная поддержка скриптов
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU LIBRARY GENERAL PUBLIC LICENSE
homepage          : https://kate-editor.org/
package_uuid      : d017bba7-950b-4db6-84a1-e37d4172e262
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 11
max_os_version    : 
icon_sha256sum    : 0ffe006104cc5ea9983eddbaa1eb6a9c4b0d485fad5de738764cef0624cf767b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-09-06T10:02:17.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         : J4uYX9HZN2g5uAYIq3Ry9Xq2m8xAT+MhKvL0R6uN1TUfYsBdxg/P6h8AOJQaBl0aRB+YW1jeBvh15A36Zj6I6rwl9JBwjeiR2GPukCMcb77AsmSFbB2hL4wc2PlWEmigOLJ+bibvwp5OuCpOPi6gK6FxvGwr/a7m6g/xA5WUesBYTdNDV57DPPanGNzAJDTnXVzG/6WXGM/2McWRmd/j9aVH7BAwyMbxetoNosNjwx5ztC6V/URdV9jA240KucljCEiHaDSFd8icXz9cyi51dREzTukYG/BC8aOZaMurvdGOgxwWGY8OXZGHvTx3gULiOV8VWCaCZt6dOfDdCcFutw==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    install_dmg(glob.glob("kate-release_*arm64.dmg")[0])


def uninstall():
    remove_tree("/Applications/kate.app")

from setuphelpers import *
from setupdevhelpers import *


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

    base_url = "https://cdn.kde.org/ci-builds/utilities/kate/"
    control_mapping = {'darwin': 'macos', 'arm': 'arm64', 'x64': 'x86_64'}
    os_download_dict = {f'darwin-{control.architecture}': f'{control_mapping[control.architecture]}.dmg'}
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    versions = [ i.get_text(strip=True) for i in bs_find_all(base_url, "a", "href", proxies=proxies) if 'release' in i.get_text(strip=True) ]
    sorted_release = sorted(versions, key=lambda x: Version(x.split('-')[-1].strip('/')), reverse=True)

    latest_release_url = None
    for release in sorted_release:
        url = base_url + release + f"{control_mapping[control.target_os]}-{control_mapping[control.architecture]}"
        if requests.head(url).ok:
            latest_release_url = url
            version = release.split('-')[-1].strip('/')
            break

    print(f"Latest {app_name} version is: {version}")

    for i in bs_find_all(latest_release_url, "a", "href", proxies=proxies):
        bin_name = i.get_text(strip=True)
        if bin_name.endswith(os_download_dict[os_type]):
            download_url = f"{latest_release_url}/{bin_name}"

    latest_bin = download_url.rsplit('/', 1)[-1]
    latest_bin_extension = latest_bin.rsplit('.', 1)[-1]

    # Downloading latest binaries
    print(f"Download URL is: {download_url}")
    if isfile(latest_bin):
        remove_file(latest_bin)

    print(f"Downloading: {latest_bin}")
    wget(download_url, latest_bin, proxies=proxies)
    print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
9df480065bce860ec6428899fb8f686c33e672e5e282cca766d53919d96e38d5 : WAPT/control
0ffe006104cc5ea9983eddbaa1eb6a9c4b0d485fad5de738764cef0624cf767b : WAPT/icon.png
b3ac3b61a24ee4b0534b21d28b2723af2f2c151b243fe0861f765e0fba0df75f : kate-release_26.08-12232-macos-clang-arm64.dmg
09f7eedbc4bcbd052fb30d0835b3bb37f5fa13a8f5d1c69370d2d92f0e85ecaa : luti.json
bbc85d361d27d673c914da1c675199ed8f18a84ef246440e4a91b1e041865700 : setup.py
a12689d0ccd9a17180f29ca2804e8b2a09ff6ae57bfcbde309742befa263755c : update_package.py