tis-hourglass icon

Hourglass

Paquet d’installation silencieuse pour Hourglass

1.15.0.0-1

  • package: tis-hourglass
  • name: Hourglass
  • version: 1.15.0.0-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Chris Dziemborowicz
  • licence: opensource_free,cpe:/a:mit:x11_license,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: Hourglass
  • architecture: x64
  • signature_date:
  • size: 1.33 Mo
  • installed_size: 1.08 Mo
  • homepage : https://chris.dziemborowicz.com/apps/hourglass/

package           : tis-hourglass
version           : 1.15.0.0-1
architecture      : x64
section           : base
priority          : optional
name              : Hourglass
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Hourglass is a countdown timer for windows
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 1078072
impacted_process  : Hourglass
description_fr    : Hourglass est un compte à rebours pour Windows
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Chris Dziemborowicz
keywords          : countdown,timer
licence           : opensource_free,cpe:/a:mit:x11_license,wapt_public
homepage          : https://chris.dziemborowicz.com/apps/hourglass/
package_uuid      : a8c3f420-b9b3-40a9-a26d-098e6163f1ba
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/dziemborowicz/hourglass/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 31b0cff4224aee33df2b24ecc5d4e25180114b6421c8a5762ee94ef3bdb0b9ad
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : pTiGm3AdYOD07ZNnmXvRBHI0QRZXqgWBh1O/+xc1ozBdNuh5tKHzXI9AFGUYY0UN/tWGfoUbcbF/91xTwiEziAlUtQm2SvzcwSpk81wB/PULJHwjuquwFmJis/wFfPOhUU/AFnb7PFntV9bYs+HIqJjwBCtyBCuAlZ6i+aG+HDL29x4rJezDT4XpxBLSHeJfAmbv6cnFTcc36WYv97yD7MNQhOh540CtFdL5p0cAs9CW5peFDYsXYJc/XvDvTU5XUF03rh3hmf4CW9rdDVnLjrD7tYuysFBUS0j4VjKlI7BGYtsZc1NUXis2087s6x/LSMywfrrE0GJbW2oi981Xvg==
signature_date    : 2024-08-14T09:00:09.216723
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():
    bin_name = glob.glob("HourglassInstaller.exe")[0]
    install_exe_if_needed(bin_name, silentflags="/allusers /S", min_version=control.get_software_version())


def uninstall():
    # Uninstalling the software
    for to_uninstall in installed_softwares("Hourglass"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])
        break

# -*- 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()
    update_dict = {"windows": ".exe"}
    api_url = "https://api.github.com/repos/dziemborowicz/hourglass/releases/latest"

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

    # Deleting binaries
    for f in glob.glob("*.exe"):
        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)

    version = get_version_from_binary(latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

73d0ced2950ff757632d741ac10d26c04cefe923bbad939d687846d858c93f34 : setup.py
6025544683d851763859e69c14163782ef181992b81fba9edfc2aa8e3178e6e5 : HourglassInstaller.exe
3010c0fff085b42053777fd532a88dab7b9579e6120908340c1e7325076cc4d1 : update_package.py
31b0cff4224aee33df2b24ecc5d4e25180114b6421c8a5762ee94ef3bdb0b9ad : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2ae1be643cb66e2cc662fa27815302eb86b05404700352c78840e80d9045a03d : luti.json
52f09595f84b3d3de83229cacd023535dc0404ff59067844829db8bfb722e717 : WAPT/control