tis-add-font-spectral icon

Font-Spectral

Paquet d’installation silencieuse pour Font-Spectral

2.1.3.0-8

package           : tis-add-font-spectral
version           : 2.1.3.0-8
architecture      : all
section           : base
priority          : optional
name              : Font-Spectral
categories        : Configuration
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
description       : Install font Spectral
depends           : 
conflicts         : tis-addfont
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Installer la police Spectral
description_pl    : Zainstaluj czcionkę Spectral
description_de    : Schriftart Spectral installieren
description_es    : Instalar fuente Spectral
description_pt    : Instalar o tipo de letra Spectral
description_it    : Installare il font Spectral
description_nl    : Lettertype installeren Spectral
description_ru    : Установите шрифт Spectral
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : https://www.systeme-de-design.gouv.fr/fondamentaux/typographie/
package_uuid      : 5af27b59-55b4-4e57-b4ed-6227176562d1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 2bc8d2071b881c53e721f95f2f9c880b4b9be10474a7404ce5d947575f99204c
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-10T15:00:22.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         : kAKoPyz0knzF6BRC8jK6rlHTF88nfFAhb/FpvC+9NtWinl+XmGkgXYFHpFaFg7c8b1cU5QexukptTPwnFKNveK6j9SiuW/uO8z1CgQxlXtfsv24xxCTtWJ7RcKUmyU0/xQ06km20kd2Ggs5VkwWP82JscapvJqxwrrzG3OLCMDl7bwFZlIZ3qA1Y1m07yYtgh1EjGkYThzjArXheyFxkn6/ZZzHJ8w+WDsXQFn5PZDqlrJKvjjOv2XhfzdbgMAlvtmL/XURZRaD3eI3sGwYGRml3OADfgMbf7qI74NbncksZUPRIMEFN0IMRFFhzmRfnyFws01AfFNqfTT4tqEwSFw==

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


def install():
    # Declaring local variables
    if iswin64():
        bin_name = "FontReg64.exe"
    else:
        bin_name = "FontReg32.exe"
    fonts_path = os.path.abspath("fonts")

    # Getting the fonts
    for zip_file in glob.glob("*.zip"):
        unzip(zip_file, "fonts", extract_with_full_paths=False)
    for font in glob.glob(f"{fonts_path}/*.ttf"): # Only printing
        print("Installing Font: %s" % font.split(os.sep)[-1])

    # Installing the fonts
    os.chdir(fonts_path)
    run(f'"{bin_name}" /copy')
    print("INFO: The PC must be rebooted for the fonts to appear")

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

bin_name_x86 = "FontReg32.exe"
bin_name_x64 = "FontReg64.exe"
fonts_path = os.path.abspath("fonts")


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

    # Deleting outdated binaries
    for f in glob.glob('*.zip'):
            remove_file(f)

    # Downloading latest binaries
    if not isfile(bin_name_x64):
        print("Downloading: %s" % bin_name_x64)
        wget("https://raw.githubusercontent.com/jason-jxc/FontReg/master/bin.x86-64/FontReg.exe", makepath(fonts_path, bin_name_x64), proxies=proxies)
    if not isfile(bin_name_x86):
        print("Downloading: %s" % bin_name_x86)
        wget("https://raw.githubusercontent.com/jason-jxc/FontReg/master/bin.x86-32/FontReg.exe", makepath(fonts_path, bin_name_x86), proxies=proxies)

    # Downloading fonts
    if not isfile("Spectral.zip"):
        print("Downloading: %s" % "Spectral.zip")
        wget("https://www.systeme-de-design.gouv.fr/uploads/Spectral_2a059d2f08.zip", "Spectral.zip", proxies=proxies)

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()
    

    # Validating or not update-package-sources
    return package_updated

8df1f59b2845e9ccb921bc12ab2993c5d31f068b0c70721209f1c4d3b7caf5b0 : Spectral.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4875ff3fbae90aab6b9a4ffb3e890780f77abbab0acd64030e0a00cfc98a4109 : WAPT/control
2bc8d2071b881c53e721f95f2f9c880b4b9be10474a7404ce5d947575f99204c : WAPT/icon.png
0a76dd4304c1c0fb3454e888acc92f7423c22181035e37b6153519f7d7075c10 : fonts/FontReg32.exe
c38ac955e588a8e22f51e9b6460017c1e0642001b0f0b9139737675256913908 : fonts/FontReg64.exe
a0f7e95c7470c846101560236fe8d443a131c172de3bb0c12455d681dfb3af8d : luti.json
db1c3f1dc5aa9d3d9ee126f7c992cb87c67e1151c3a9d6f573a626489ce7a6f0 : setup.py
787405f70d34f70059cc061e89379f29b748bd8e39796cb8f145407e37bedc5e : update_package.py