tis-stretchly icon

Stretchly

Silent install package for Stretchly

1.18.0-1

  • package: tis-stretchly
  • name: Stretchly
  • version: 1.18.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: x64
  • signature_date:
  • size: 178.94 Mo
  • installed_size: 349.54 Mo
  • homepage : https://hovancik.net/stretchly/

package           : tis-stretchly
version           : 1.18.0-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         : 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      : 62942282-ffee-4f3e-b9fc-2cdbeb5d34a1
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    : 2025-09-21T12:01:38.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         : LgoY293JWBmfcFxaPGEuaP3zB8tVSIuOn6D6st24o/VY84hpuVf7VRDsfkrQub8wRqAN+G5bchFHoIIQrdCSqCUfNdMjOmvrhxvuBbFfb7kqa3vsJsEK6tEQvrmgCshUpVI3x3Ch/+ZT7Aw2dGFH0qJ5pCiWujuwZM50dfH4G3BR3PYBmHEpSM9gcC43gsVkrh6wUd9zMnukMVFIx9hx1ciRg+9X1T0PTaRXuUOYUwX0Q/rZYDKfZ3HVmoCA3DEfMPxZMFrkYIboL+F/xnyb/b+rP8v/HkqQyMxX/BDaicIG6vKQgURQRLFSXP3mKyX8oRLQVtoPmE4Z2lJoyuUOHQ==

# -*- 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

9c454764b19d0079c770ae894e88c4d0400f4a6573f74002ae2384144c4d1ec3 : Stretchly-1.18.0.dmg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a06c1ac277ec860ea71d5da79f9b1df23f12a930f5dadde3c0e68776d7063233 : WAPT/control
42ea98667b44ce66296cf55f8dd2fa9dbff86f69793e967fc8a6786e21519706 : WAPT/icon.png
28b5cf8c503dada64bb31d4ce96387a9ab431c14e0b67c2d4d3906332b293e84 : luti.json
1ab469857b57bd9d08063450e7601397140e1b7806bc902661cc0b8291090dcc : setup.py
dbcadf45ae6f33cbf3f657fc9e24af5544130ea79466ae9d5b03624c7364db8c : update_package.py