tis-activitywatch

0.13.2-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.2-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-11-11 09:00
  • size : 84.52 Mo
  • installed_size : 292.57 Mo
  • homepage : https://activitywatch.net/
package           : tis-activitywatch
version           : 0.13.2-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      : b9c1e4f8-2f9b-4b4a-afe6-4790aee49e0f
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_date    : 2024-11-11T09:00:14.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         : qUeVHX8DHlBI0gVkQd+DNnlCGklibaodTBAb0/Y+0DzJP5jeJxWKjquFOwYYZowdABz/+Cy5rToqRvaau4EQqzisOrVTAYnfJ1HplHNLKyykuTtUHMaD+l6Y4K47horENuIZSqG5ULqoY+XZFaYYVZ5vbhqn917sZnFsCi2ElKGm5h4Seb4l99nkEf6H/Dl7wpgyAZandhipNrVgxkMcFreJwo4d0oTP9CVIGughsP7I3BwAc4CZaTRz1wRkMX3BwPBkrqTvU2ocCqCwTWlKM4zikpMQH2XVmpsposeThACy07twbditoWFSWjAx30ke2zA0bEcjz5EnMg0FP5yAAg==
# -*- 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()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
67411b559602f32939dafd1ba89160eec5db4851de2a6205b8c915896f9685e1 : WAPT/control
3d7b4a9578bc20346e95da51e155599d271658686d09db49e65059b231413920 : WAPT/icon.png
666c4d7a7bd9346d9d714bedd17b7dee5ed98e66fb277de3c026c088de6d6627 : activitywatch-v0.13.2-windows-x86_64-setup.exe
51c0c652987e1ac59b0d6092b2d911a2d1f99244b7b09ab137fb327aca881671 : luti.json
e44c97a388b8c42f8bf91a5bff5b218b1a938fc470434eb338eb261dd160a9b8 : setup.py
21391d852ec2d5b2c9d0166d43e9a0ce9127d0072aed0240bdf051e84110e137 : update_package.py