Skip to content

Commit 8930380

Browse files
PythonSmall-QCopilot
andcommitted
feat: add updater plugin and implement app update checks
- Integrated `tauri_plugin_updater` for automatic updates. - Added commands for fetching install channel info and sending native notifications. - Implemented foreground window info retrieval for Linux using both Wayland and X11. - Updated version to 0.5.0 in configuration files and application. - Enhanced notification system to include update availability and installation readiness. - Introduced settings option to ignore system processes in usage statistics. - Refactored dashboard and limits pages to accommodate new usage tracking features. - Improved localization for new features and settings. Co-authored-by: Copilot <copilot@github.com>
1 parent f8701ff commit 8930380

28 files changed

Lines changed: 1521 additions & 167 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
uses: tauri-apps/tauri-action@v0
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
69+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
6870
with:
6971
tagName: ${{ steps.pkg_version.outputs.version }}
7072
releaseName: "TimeLens ${{ steps.pkg_version.outputs.version }}"

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,43 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55

66
---
77

8+
## [0.5.0] - 2026-05-01
9+
10+
### Added
11+
12+
- Update channel split policy:
13+
- Microsoft Store installs now only receive update reminders (no in-app updater trigger)
14+
- macOS and non-Store installs attempt in-app updater first, with release-page fallback
15+
- Linux foreground-window detection MVP:
16+
- Wayland path via `zbus` (GNOME Shell `Eval` best-effort)
17+
- X11 path via `x11rb` (`_NET_ACTIVE_WINDOW` + `_NET_WM_PID`)
18+
- Data-layer performance upgrades:
19+
- New `daily_app_usage` pre-aggregation table for date/range queries
20+
- New paginated command `get_app_usage_page` for large history reads
21+
- New setting: **Ignore system processes**
22+
- Excludes non-interactive processes under `System32` / `SysWOW64`
23+
- Keeps interactive executables such as `explorer.exe` and `taskmgr.exe`
24+
25+
### Changed
26+
27+
- App version bumped to **0.5.0** in `package.json`, `src-tauri/Cargo.toml`, `src-tauri/tauri.conf.json`, and UI version labels
28+
- App-limit alerts now rely on OS notifications only (removed in-app blocking modal)
29+
- Dashboard date behavior:
30+
- Removed implicit day-mode re-fetch loop that could override historical views
31+
- Auto-refresh of today data now only happens when currently viewing **today** in day mode
32+
- "Current App / 正在使用" now appears only in **today + day mode**; hidden for historical day/week/month navigation
33+
- Widget spawn behavior:
34+
- Prefers the user's last moved widget position
35+
- If occupied, applies collision avoidance in order: **down first, then right**
36+
- `ignored_apps` values are normalized for path separator and case to improve matching reliability
37+
38+
### Fixed
39+
40+
- Prevented mismatch where historical dashboard views displayed real-time active-app info
41+
- Reduced large-range query pressure by switching range/day totals to pre-aggregated source table
42+
43+
---
44+
845
## [0.4.0] - 2026-04-26
946

1047
### Added

package-lock.json

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "timelens",
33
"private": true,
4-
"version": "0.4.0",
4+
"version": "0.5.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -23,6 +23,7 @@
2323
"@tauri-apps/plugin-global-shortcut": "^2",
2424
"@tauri-apps/plugin-notification": "^2",
2525
"@tauri-apps/plugin-shell": "^2",
26+
"@tauri-apps/plugin-updater": "^2",
2627
"clsx": "^2.1.0",
2728
"i18next": "^23.10.0",
2829
"lucide-react": "^0.344.0",

0 commit comments

Comments
 (0)