tis-stretchly

1.15.1-1
Stretchly is a cross-platform open source app that reminds you to take breaks when working on your computer
1075 downloads
Download
See build result See VirusTotal scan
tis-stretchly icon
  • package : tis-stretchly
  • name : Stretchly
  • version : 1.15.1-1
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor : Jan Hovancik
  • licence : opensource_free,cpe:/a:bsd:bsd_license,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process : Stretchly
  • architecture : x64
  • signature_date : 2024-07-06 15:00
  • size : 127.61 Mo
  • installed_size : 349.54 Mo
  • homepage : https://hovancik.net/stretchly/
package           : tis-stretchly
version           : 1.15.1-1
architecture      : x64
section           : base
priority          : optional
name              : Stretchly
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Stretchly is a cross-platform open source app that reminds you to take breaks when working on your computer
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 349538632
impacted_process  : Stretchly
description_fr    : Stretchly est une application open source multiplateforme qui vous rappelle de faire des pauses lorsque vous travaillez sur votre ordinateur
description_pl    : Stretchly to wieloplatformowa aplikacja open source, która przypomina o robieniu przerw podczas pracy na komputerze
description_de    : Stretchly ist eine plattformübergreifende Open-Source-Anwendung, die Sie daran erinnert, Pausen zu machen, wenn Sie an Ihrem Computer arbeiten
description_es    : Stretchly es una aplicación multiplataforma de código abierto que te recuerda que debes hacer pausas cuando trabajas con el ordenador
description_pt    : Stretchly é uma aplicação de código aberto multiplataforma que o lembra de fazer pausas quando trabalha no seu computador
description_it    : Stretchly è un'applicazione open source multipiattaforma che ricorda di fare delle pause quando si lavora al computer
description_nl    : Stretchly is een cross-platform open source app die je eraan herinnert om pauzes te nemen als je op je computer werkt
description_ru    : Stretchly - это кроссплатформенное приложение с открытым исходным кодом, которое напоминает вам о необходимости делать перерывы при работе за компьютером
audit_schedule    : 
editor            : Jan Hovancik
keywords          : breaks,working,computer
licence           : opensource_free,cpe:/a:bsd:bsd_license,wapt_public
homepage          : https://hovancik.net/stretchly/
package_uuid      : e4f9e5dd-7c57-4a96-b8fc-34e72f848dd8
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/hovancik/stretchly/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 42ea98667b44ce66296cf55f8dd2fa9dbff86f69793e967fc8a6786e21519706
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : jTKLBKlCQh2A2BFZyialsQ1qZ5Gqa1861iqydk+UlgNn8eBJ3RNt+21sfJOtJzlMVIW1IUAICVcgKqc5jHkMQ74z9/Oqbaq5w1O7x1K+Ra72AsEftXQjd81qFRVoVgbFdwfDtYKPCkumAAofFxA7+tTFdPMTkjeMPIYCUzYK6IDoqAVcF0/JtPfTxNtAyaMTHfMlnVlq10k9Hg+JLI8Vpj0k9nNfJQCv79giYj4c7GXElF387hOuq51btErBiYRbCPzMzuwjceuzQ6aECwIRC5tyMqbxaAoqa4JHr9qM6nc6Fv1c0MhJQD9CSoMs9OzGkkELhnsMbrx4u5zs4/dLKw==
signature_date    : 2024-07-06T15:00:45.780707
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 *

install_path = makepath(programfiles, "Stretchly")


def install():
    bin_name = glob.glob("Stretchly-Setup-*.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags=" /allusers /S",
        key="4f357cc2-fcfb-5fb1-89af-67446d29eff0",
        min_version=control.get_software_version(),
    )


def uninstall():
    for to_uninstall in installed_softwares("Stretchly"):
        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"])
        if isdir(install_path):
            remove_tree(install_path)
# -*- 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", "macos": ".dmg"}
    api_url = "https://api.github.com/repos/hovancik/stretchly/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
    # version = json_loads["tag_name"].replace("v", "").replace(".windows", "")
    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"].split(" ")[1].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()
3bf314eb6cea8453d270c22563d8a3b4cbea1b2f9c84a9c02819b179e50281d6 : setup.py
 : __pycache__
fd741963ee0e349390bddbacf4f01f82cbcbdaf179687cc104d0e3bb3f90234e : update_package.py
42ea98667b44ce66296cf55f8dd2fa9dbff86f69793e967fc8a6786e21519706 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
74b109d35f5aa1d6e7641d980fda588ba668b0a03587038c82f0acb0997b014c : luti.json
417caa2d5ee7aa07aefc15b4c68685d870613564004f422d3e2f6969859d0afe : Stretchly-Setup-1.15.1.exe
6017a13f12f69587f9922a10843509f3b970c337f9b40f4a8db6c3d7655223c7 : WAPT/control