tis-marktext

0.17.1-0
Un éditeur open-source Markdown simple et élégant, axé sur la vitesse et la convivialité.
1409 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-marktext icon
  • package : tis-marktext
  • name : Marktext
  • version : 0.17.1-0
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT
  • editor : Jocs and contributors
  • licence : opensource_free,MIT,wapt_public
  • locale : all
  • target_os : debian_based
  • impacted_process : MarkText
  • architecture : x64
  • signature_date : 2024-05-27 13:00
  • size : 75.23 Mo
  • installed_size : 276.00 Mo
  • homepage : https://www.marktext.cc/
package           : tis-marktext
version           : 0.17.1-0
architecture      : x64
section           : base
priority          : optional
name              : Marktext
categories        : Office
maintainer        : WAPT Team,Tranquil IT
description       : A simple and elegant open-source markdown editor that focused on speed and usability.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : debian_based
min_wapt_version  : 2.0
sources           : https://github.com/marktext/marktext
installed_size    : 276000000
impacted_process  : MarkText
description_fr    : Un éditeur open-source Markdown simple et élégant, axé sur la vitesse et la convivialité.
description_pl    : Prosty i elegancki edytor markdown open-source, który koncentruje się na szybkości i łatwości użytkowania.
description_de    : Ein einfacher und eleganter Open-Source-Markdown-Editor, der sich auf Geschwindigkeit und Benutzerfreundlichkeit konzentriert.
description_es    : Un editor Markdown de código abierto simple y elegante que se centra en la velocidad y la usabilidad.
description_pt    : Um editor markdown open-source simples e elegante, focado em velocidade e usabilidade.
description_it    : Un editor Markdown open source semplice ed elegante, incentrato su velocità e usabilità.
description_nl    : Een open-source markdown-editor die eenvoudig en elegant is, gericht op snelheid en bruikbaarheid.
description_ru    : Простой и элегантный редактор Markdown с открытым исходным кодом, ориентированный на скорость и удобство использования.
audit_schedule    : 
editor            : Jocs and contributors
keywords          : marktext,markdown,editor
licence           : opensource_free,MIT,wapt_public
homepage          : https://www.marktext.cc/
package_uuid      : 144a0a81-f38b-4cd8-8480-91654377ad31
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ab4bca56acd317eecf8130ec445c383b6d4122df1c68a820d1ca86f34f3d3499
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : jAOBc44mJIfDXXqhUw40IeutDNlz1GPB6AqzDp9bowRGzS17sG9GpTX6jH3+I58O3/x4cu9W2Z0e9uvTXkuK7SonJO+mmo5tvEk7JtBB/VCzZKaA0VnmWpvOBkqr8KwPGT8J5mLv0pPVWEEni29dq5pcAp60sQOxjFCiSDQy0xCj3x4SQ/THeh1GJDLdKrFFwOm6INSboxUNrwIEwbRvvyANSpvG/QEK4anF3lC/c8JQwjhqhGDP3hOvBsgGg5sZ9jMJ30wCpkERykxoSnbDJi2tbpxkhurd35CbajS5ALHk4ojbnZszXorvRquQ4ajSPtUoZAHqrsx9kkWsbpMqlQ==
signature_date    : 2024-05-27T13:00:40.980207
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
# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    # Declaring local variables
    bin_name = glob.glob("*.deb")[0]

    install_deb(bin_name)

def uninstall():
    uninstall_apt('marktext')
# -*- 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 = "marktext/marktext"
    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["name"].endswith('.deb') and "amd64" in download["name"]:
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            break

    print("Downloading: %s" % latest_bin)
    wget(url_dl, latest_bin, proxies=proxies)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
        control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
        # control.set_software_version(Version(version))
        control.save_control_to_wapt()

    # Validating update-package-sources
    return result
5fed05df9e7c411a57ed8bf3bec229bc6f640a85bd9b185cd5225872f9956f0d : setup.py
 : __pycache__
927fa87c11e6763171bd68dbf60f235bfea62989e799620dd392d19077574fd2 : marktext-amd64.deb
3f8e975e1c6a06347baf604e3dc1f8af5ded12173b7aa233bb3c7524bdedd984 : update_package.py
ab4bca56acd317eecf8130ec445c383b6d4122df1c68a820d1ca86f34f3d3499 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
0ebfaab634d5c6295c7a2373decf5bdcd0b23befb419e8a2966a1bd6e3514f12 : luti.json
2a56075a9128232a7ae5961b3dc3e724d27d66e2be3eede577952e5627b43e39 : WAPT/control