Skip to content

Commit 0d1f0a9

Browse files
committed
build: updated downloads.yml, fix to update-downloads.py
1 parent 3a7f38c commit 0d1f0a9

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

_data/downloads.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
version: v0.12.1
1+
version: v0.12.2
22

33
platforms:
44
- name: Windows
55
assets:
66
- title: Installer
77
description: " (recommended)"
8-
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.1/activitywatch-v0.12.1-windows-x86_64-setup.exe
8+
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.2/activitywatch-v0.12.2-windows-x86_64-setup.exe
99
- title: .zip
10-
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.1/activitywatch-v0.12.1-windows-x86_64.zip
10+
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.2/activitywatch-v0.12.2-windows-x86_64.zip
1111
- title: Chocolatey
1212
url: https://chocolatey.org/packages/activitywatch
1313

1414
- name: Linux
1515
assets:
1616
- title: .zip
17-
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.1/activitywatch-v0.12.1-linux-x86_64.zip
17+
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.2/activitywatch-v0.12.2-linux-x86_64.zip
18+
- title: .AppImage
19+
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.2/activitywatch-linux-x86_64.AppImage
1820
- title: AUR
1921
description: ", for Arch Linux and Manjaro"
2022
url: https://aur.archlinux.org/packages/activitywatch-bin/
@@ -23,10 +25,10 @@ platforms:
2325
assets:
2426
- title: .dmg
2527
description: " (recommended)"
26-
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.1/activitywatch-v0.12.1-macos-x86_64.dmg
28+
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.2/activitywatch-v0.12.2-macos-x86_64.dmg
2729
- type: zip
2830
title: .zip
29-
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.1/activitywatch-v0.12.1-macos-x86_64.zip
31+
url: https://github.com/ActivityWatch/activitywatch/releases/download/v0.12.2/activitywatch-v0.12.2-macos-x86_64.zip
3032
- title: Homebrew
3133
url: https://formulae.brew.sh/cask/activitywatch
3234

scripts/update-downloads.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python3
22

3-
from datetime import datetime, timezone, timedelta
4-
from pathlib import Path
53
import re
4+
from datetime import datetime, timedelta, timezone
5+
from pathlib import Path
6+
67
import requests
78

89

@@ -32,7 +33,7 @@ def is_older(dt: str, td: timedelta):
3233

3334
with open(p, "r") as f:
3435
orig = f.read()
35-
new = re.sub(r"v[0-9.]+", latest_release, orig)
36+
new = re.sub(r"v[0-9.]+[abrc]*[0-9]*", latest_release, orig)
3637

3738
if new == orig:
3839
print("No change")

0 commit comments

Comments
 (0)