tis-stretchly

1.17.0-1
Stretchly is a cross-platform open source app that reminds you to take breaks when working on your computer
1071 downloads
Download
See build result See VirusTotal scan
tis-stretchly icon
  • package : tis-stretchly
  • name : Stretchly
  • version : 1.17.0-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 : macos
  • impacted_process : Stretchly
  • architecture : arm
  • signature_date : 2024-12-29 12:12
  • size : 161.48 Mo
  • installed_size : 349.54 Mo
  • homepage : https://hovancik.net/stretchly/
package           : tis-stretchly
version           : 1.17.0-1
architecture      : arm
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         : macos
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      : 8bb90ee7-54b5-4a51-9b0a-8fcb84f56fe0
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_date    : 2024-12-29T12:12:15.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         : uWoXv0klLrlJDNbpgrEZs1IY7RCCa4O4sDw0SbIupAWxQ0Y7P632JOJgw3O5EFwZefw7KDuhaeJ/W1OalNNQecZqeDxZ5/ttlUVlYlWyi833VP3U/owVqFBFuPgJ7sbjSi/xtNwZBsS/QtWCmbYMRu69rKQr8YSeWafSfjRf7iyFXglBa866mtY3rXG0perL4Jacry1gET/H24g8SNRmKXwnkjLqwGa5d4Q6JkKMnAajWDgmX8zBdkppfOAISv2a0SgCVT5Rkfq2GhpmZSsDrB8MkYO7OBLH46w4hhmpm1SMI6vqEfdYVZtU+ncyOfRNUXiMk5ht4uG88oC8GiplqA==
# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    install_dmg(glob.glob("Stretchly-*.dmg")[0])


def uninstall():
    remove_tree("/Applications/Stretchly.app")
# -*- coding: utf-8 -*-
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
        
    api_url = "https://api.github.com/repos/hovancik/stretchly/releases/latest"
    latest_release = wgets(api_url, proxies=proxies, as_json=True)
    version = latest_release['tag_name'].replace('v', '')

    download_dict = {
        'macos-x64': f'Stretchly-{version}.dmg',
        'macos-arm': f'Stretchly-{version}-arm64.dmg',
    }
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    for asset in latest_release["assets"]:
        if asset["name"] == download_dict[os_type]:
            download_url = asset["browser_download_url"]
            latest_bin = asset["name"]
            latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated
5800f7532868a6d9232aa7f01df6a77d64af242fa35faff7820cbfdcfb512c49 : Stretchly-1.17.0-arm64.dmg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
37c02c5f47d9457bce8bf87950663ccf8718ea28908f4531b7e4d8c7deaa6430 : WAPT/control
42ea98667b44ce66296cf55f8dd2fa9dbff86f69793e967fc8a6786e21519706 : WAPT/icon.png
a33b1dd209161884b6eeaa08de638c343d8917953ce7546836a1f4aa6119e32c : luti.json
1ab469857b57bd9d08063450e7601397140e1b7806bc902661cc0b8291090dcc : setup.py
dbcadf45ae6f33cbf3f657fc9e24af5544130ea79466ae9d5b03624c7364db8c : update_package.py