tis-pandoc icon

Pandoc

Paquet d’installation silencieuse pour Pandoc

3.7.0.2-1

  • package: tis-pandoc
  • name: Pandoc
  • version: 3.7.0.2-1
  • maintainer: Amel FRADJ
  • licence: GNU GENERAL PUBLIC LICENSE
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 40.01 Mo
  • homepage : https://pandoc.org/

package           : tis-pandoc
version           : 3.7.0.2-1
architecture      : x64
section           : base
priority          : optional
name              : Pandoc
categories        : 
maintainer        : Amel FRADJ
description       : Pandoc can convert documents to markdown, reStructuredText, textile, HTML, DocBook, LaTeX and many others.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Pandoc peut convertir des documents en markdown, reStructuredText, textile, HTML, DocBook, LaTeX et bien d'autres.
description_pl    : Pandoc może konwertować dokumenty do formatu Markdown, ReStructuredText, tekstylnego, HTML, DocBook, LaTeX i wielu innych.
description_de    : Pandoc kann Dokumente in Markdown, reStructuredText, Textile, HTML, DocBook, LaTeX und viele andere konvertieren.
description_es    : Pandoc puede convertir documentos a Markdown, reStructuredText, textil, HTML, DocBook, LaTeX y muchos otros.
description_pt    : Pandoc pode converter documentos em markdown, reStructuredText, têxtil, HTML, DocBook, LaTeX e muitos outros.
description_it    : Pandoc può convertire documenti in markdown, reStructuredText, tessile, HTML, DocBook, LaTeX e molti altri.
description_nl    : Pandoc kan documenten converteren naar markdown, reStructuredText, textiel, HTML, DocBook, LaTeX en vele andere.
description_ru    : Pandoc может конвертировать документы в Markdown, reStructuredText, Textile, HTML, DocBook, LaTeX и многие другие.
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU GENERAL PUBLIC LICENSE
homepage          : https://pandoc.org/
package_uuid      : 242b8e9b-b2ec-4912-92cb-74dcdee7c1bd
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/jgm/pandoc/blob/main/changelog.md
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 22de6a0dfd701ba4d09d6f12a7dba7ba5049806ef80197b1a725a05280868691
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-03T15:04:28.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         : WU+Gf9vSIgaB40HBEvFwBoUS2FgK6Dy7vSy+6YmBP9LdVUcA1LLVkI1Ld3dmIPlAnDNtdPvzOq4fwjqTRyirq+wEIsDPLGm/vIuFzw80R+beNRu/6hVIgaAg4mX28H1oXwGy4YGnXUXt+b+KkcWUe1tubYXOJ961AiL92jdBEXMEQ3UpfzyLRIqd6VXfSUL5Wenj5efnaRc+cw6JWnUszJ0Nc0pXzGiqhqhZ8Err4RcqCD+2ZBY4I1LxNMcRHXK8p1BeM3qmZF5woKJsWs/8NBG258XehOY1UXIQn5iHpVxEGHMMLg2K0SZmXnp1RRQHOt93LSAQfndXX393EZHTtw==

# -*- 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('pandoc-*-windows-x86_64.msi')[0]
    # Installing the software
   
    install_msi_if_needed(bin_name)



# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/jgm/pandoc/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    msi_found = False  # Flag pour indiquer la découverte d'un fichier .msi
    for release in releases_dict:
        if msi_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".msi") :
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"][7:]
                msi_found = True  # Mettre à jour le flag pour indiquer qu'un msi a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.msi"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)
        
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
90ddfbce1ec1c334e0695132aa61a6a49e30dfc435a0a6740c4d7a655bdd4fd1 : WAPT/control
22de6a0dfd701ba4d09d6f12a7dba7ba5049806ef80197b1a725a05280868691 : WAPT/icon.png
fa290186c68959da1c138e5016ec77688a6c7fa0c8db4ede2c88a1b3082ca438 : luti.json
fe64e16b76855fff6dd15cb9967f5680cbb31495b5ff968dc5e5304cb9b3a23d : pandoc-3.7.0.2-windows-x86_64.msi
d70532f3b6c76d2c0e09b3d894ca0b8be4371a249ef8c0f860333738fe344cc4 : setup.py
f55df141ab3ef08e771b5eeacb1cf64c96e4368451d59e3fab1c5837a1c50f23 : update_package.py