tis-darktable icon

Darktable

Paquet d’installation silencieuse pour Darktable

4.8.1-1

  • package: tis-darktable
  • name: Darktable
  • version: 4.8.1-1
  • categories: Utilities,Media
  • maintainer: WAPT Team,Tranquil IT,Pierre Cosson
  • editor: https://github.com/darktable-org
  • licence: GPL-3.0 license
  • locale: all
  • target_os: windows
  • impacted_process: darktable
  • architecture: x64
  • signature_date:
  • size: 120.64 Mo
  • installed_size: 488.34 Mo
  • homepage : https://www.autodesk.fr/viewers

package           : tis-darktable
version           : 4.8.1-1
architecture      : x64
section           : base
priority          : optional
name              : Darktable
categories        : Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Pierre Cosson
description       : darktable is an open source photography workflow application and non-destructive raw developer
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/darktable-org/darktable/releases/latest
installed_size    : 488340945
impacted_process  : darktable
description_fr    : darktable est une application de flux de travail photographique open source et un développeur raw non destructif
description_pl    : darktable jest aplikacją open source do organizacji pracy w fotografii i niedestrukcyjnego rozwijania surowego materiału
description_de    : darktable ist eine Open-Source-Fotoworkflow-Anwendung und nicht-destruktiver Rohdatenentwickler
description_es    : darktable es una aplicación de flujo de trabajo fotográfico de código abierto y un revelador de raw no destructivo
description_pt    : darktable é uma aplicação de fluxo de trabalho de fotografia de código aberto e revelador bruto não destrutivo
description_it    : darktable è un'applicazione open source per il flusso di lavoro fotografico e per lo sviluppo non distruttivo di raw
description_nl    : darktable is een open source fotografie workflow applicatie en niet-destructieve raw ontwikkelaar
description_ru    : darktable - это приложение для работы с фотографиями с открытым исходным кодом и недеструктивный разработчик raw
audit_schedule    : 
editor            : https://github.com/darktable-org
keywords          : 
licence           : GPL-3.0 license
homepage          : https://www.autodesk.fr/viewers
package_uuid      : a801afbc-e5d4-49a4-be23-50617fe5e38d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/darktable-org/darktable/releases/latest
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : d668672dbc49ac48bb3563d2b729f03dd7eb0ba950e748636eb63cc0a6265caa
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : fFyYof/0tEFJa7TgAB2TxXrXJPjMAXs6xLylo97sJGB7+r5kfgNEhuGbrx5buLjnvcUNHJVfUjb3QMSq3X1XGZKPlWRqXtWUJKvaeu0f9bGtugsHa0t4NPui7X5KQl/Cdyr0qhufyheblZC6zkAZl0fclbbhJhH+Or+QKO3tugAq130XOjV8yJmgv0HcB4Y2UaJuf767eFwzk4NsI3xabrjSebDnHpHs5HGg5wshYaZfYVgG7jeCbzTuKAh9nmm81+EnSne+ZbLR2M2udq89qil9GbyiB9eZw7yspjj0ff7N06XP3CYP/kpzBvY/DregOcneuVbV/v66asVQ1Q4HDQ==
signature_date    : 2024-09-04T17:00:45.646606
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 *

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
bin_contains = "darktable"
silentflags = "/S"
app_uninstallkey = "darktable"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]
    # Installing the software
    print("Installing: %s" % bin_name)
    # print("Installing: %s (%s)" % (bin_name, package_version))
    # print("Installing: %s (%s)" % (control.name, package_version))
    install_exe_if_needed(
        bin_name,
        silentflags=silentflags,
        key=app_uninstallkey,
        min_version=package_version,
    )

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "darktable"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/darktable-org/darktable/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if bin_contains in download["name"] and ".exe" in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split("-")[1]
            latest_bin = download["name"]
            break
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)
        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        # if not version_from_file.startswith(version) and version_from_file != '':
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary")
            os.rename(latest_bin, bin_contains + version_from_file + bin_ends)
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")
    # 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
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()
    # Deleting outdated binaries
    remove_outdated_binaries(version)
    # Validating update-package-sources
    return result

676ed76a116f0f54adccd39c6d315ebb2bb5580d02f3915d999044df4dcde277 : setup.py
a7255eaad0cd36ad4771441ef5ad052d3069a90991de50f9b394a7c235de61e3 : darktable-4.8.1-win64.exe
afa3af778bc6290ad3a7e4013e2fd17eab8003eb8febd08d4896d420a5348353 : update_package.py
d668672dbc49ac48bb3563d2b729f03dd7eb0ba950e748636eb63cc0a6265caa : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 : WAPT/changelog.txt
aeea5f1f1ab29c78e5a3f1525c83b8e600cda1d0036e4b1cbcedc45b2e2d02ff : luti.json
697602f4d8376dc12f4b93373998b6806a6227f66da43b1d807f7860ddb6a5d6 : WAPT/control