tis-activitywatch

0.13.1-3
ActivityWatch is an app that automatically tracks how you spend time on your devices
1538 downloads
Download
See build result See VirusTotal scan
tis-activitywatch icon
  • package : tis-activitywatch
  • name : ActivityWatch
  • version : 0.13.1-3
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor : ActivityWatch Contributors
  • licence : opensource_free,cpe:/a:mozilla:public_license_2.0,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process : aw-qt,aw-server,aw-watcher-afk,aw-watcher-window
  • architecture : all
  • signature_date : 2024-06-30 14:03
  • size : 84.34 Mo
  • installed_size : 292.57 Mo
  • homepage : https://activitywatch.net/
package           : tis-activitywatch
version           : 0.13.1-3
architecture      : all
section           : base
priority          : optional
name              : ActivityWatch
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : ActivityWatch is an app that automatically tracks how you spend time on your devices
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://activitywatch.net/downloads/
installed_size    : 292567765
impacted_process  : aw-qt,aw-server,aw-watcher-afk,aw-watcher-window
description_fr    : ActivityWatch est une application qui permet de suivre automatiquement le temps que vous passez sur vos appareils
description_pl    : ActivityWatch to aplikacja, która automatycznie śledzi, jak spędzasz czas na swoich urządzeniach
description_de    : ActivityWatch ist eine App, die automatisch verfolgt, wie Sie Ihre Zeit auf Ihren Geräten verbringen
description_es    : ActivityWatch es una aplicación que registra automáticamente el tiempo que pasas en tus dispositivos
description_pt    : ActivityWatch é uma aplicação que regista automaticamente o tempo que passa nos seus dispositivos
description_it    : ActivityWatch è un'applicazione che tiene automaticamente traccia del tempo trascorso sui propri dispositivi
description_nl    : ActivityWatch is een app die automatisch bijhoudt hoe je tijd doorbrengt op je apparaten
description_ru    : ActivityWatch - это приложение, которое автоматически отслеживает, как вы проводите время на своих устройствах
audit_schedule    : 
editor            : ActivityWatch Contributors
keywords          : time,tracking
licence           : opensource_free,cpe:/a:mozilla:public_license_2.0,wapt_public
homepage          : https://activitywatch.net/
package_uuid      : 2e0f621f-d566-4ca0-838e-9399296dc4ad
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/ActivityWatch/activitywatch/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3d7b4a9578bc20346e95da51e155599d271658686d09db49e65059b231413920
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : RAvpLWKLAPesBUxY74j6eIEhFYDm2lRx9k+VEEQ2T/Uw3/drEhmKRjoGac1P/c0AqmLE5D5bakTEGAWsZSGSKWPu8NPZdVzU2dusiUzHpOqaRDdqwmRRQaHRzfHr030WWkAveMRx4V85IsP5eCeJiFgX1Lrvr+Phk2l80iZlRLUv43+RG7O+viudL3vuMncCubdZi7x/0UYNMxh+1UUrNYqZ6+dK8VtI1zg0hdsjgcBgSw3WDiKSxquwlM0tLnHyBXSePl2HZPejk3m6XV0WBaRN6dRxP+8v2T1p3XamX0Trlx+nB49SEjmL6DB9QQ3z9FTUtDRvriOctFTKemeINw==
signature_date    : 2024-06-30T14:03:52.726886
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 *
import json


def install():
    bin_name = glob.glob("activitywatch-v*-windows-x86_64-setup.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT /allusers",
        key="{F226B8F4-3244-46E6-901D-0CE8035423E4}_is1",
        min_version=control.get_software_version(),
    )

## Audit to export datas to WAPT Console
# def audit():
#     if isfile("export"):
#         remove_file("export")
#     run("wget http://localhost:5600/api/0/export")
#     filecopyto("export", persistent_dir)
#     jsonfile = makepath(persistent_dir, 'export')
#     with open(jsonfile,'rb') as f:
#         datajson = json.load(f)

#     WAPT.write_audit_data_if_changed("audit-activitywatch", "audit-activitywatch", datajson, keep_days=365,max_count=1)

#     return "OK"
# -*- 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/ActivityWatch/activitywatch/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"].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()
e44c97a388b8c42f8bf91a5bff5b218b1a938fc470434eb338eb261dd160a9b8 : setup.py
 : __pycache__
21391d852ec2d5b2c9d0166d43e9a0ce9127d0072aed0240bdf051e84110e137 : update_package.py
3d7b4a9578bc20346e95da51e155599d271658686d09db49e65059b231413920 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
f77866b3492b8b997acec5c7707a61fc756c767b2dfbe808030440eed616ba72 : luti.json
c4c73c51018e7b91147f105af2d8278216a29cd086269c6376dc148a30cb9f76 : activitywatch-v0.13.1-windows-x86_64-setup.exe
c5ab224e32a85c20da92a2a69aa933e113a17ad491b6d45b1c920fa7f7084750 : WAPT/control