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 : windows
  • impacted_process : MarkText
  • architecture : x64
  • signature_date : 2024-05-27 13:02
  • size : 156.00 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         : windows
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      : c13170b1-d225-477b-aa7c-8e7496291b72
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ab4bca56acd317eecf8130ec445c383b6d4122df1c68a820d1ca86f34f3d3499
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : yS8tC7BK/EiYVowBxSfHcatkw4+7z1syZY/MbG9L2y/tCPKV7SVMX/pZJmEbBeksdp0wV/8SBh9eBBnt0s9fSdgOCB3g/DKSSSUeYeE1MG2XsLrZxSGxoagXtAf4YSJRQZZZpUwdRPzBq+tV3jvaMyVSi3vNdDzA7Ll5WPAKubrc91Bp+oRu1r8ypr4QQD5nVKn6lfk6QIunR/+1FvOJ3vUOck8FOHrHDb6QFZBAn+Ynn5KAJncS1UnWa3o6fqWctExhtdNwuFR96VeUw6fE9Cpe75DX6SeqG9QC0cqPEQdiaWQ+CyztdaSpWL88PO5k7fvnx6OMMqb5MDSC4BpwNw==
signature_date    : 2024-05-27T13:02:44.440733
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("*.exe")[0]

    install_exe_if_needed(bin_name,'/S /ALLUSERS',key='80b8d59a-8e25-5f52-8f55-48f4c6ccbd23',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()

    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('.exe') :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            break

    for f in glob.glob('.exe'):
        if get_version_from_binary(f) < version :
            remove_file(f)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)

        # Checking version from file
        version = get_version_from_binary(latest_bin)

    # 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
6058251400fe247298005019c64a00fffe6a2b15323e007384f29dd39318226d : setup.py
 : __pycache__
98f768aebbf70221602e69a668070a6cdf88737dfe2c9ca4fd788726ea8308ac : update_package.py
ab4bca56acd317eecf8130ec445c383b6d4122df1c68a820d1ca86f34f3d3499 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b9bf5a5d9307e190cdd12c05e6056ddbed54dce3a1b4fdb28e7d61683ac799aa : marktext-setup.exe
04e755142898f4c6e3a87bdfb10cffc114784ee195b26951e2f57ce942290517 : luti.json
7c1951853a2f7d066354db36e0dcefda1e780ea31494675abd40c30ef0bd1ac6 : WAPT/control