Skip to content

Commit a9c6282

Browse files
committed
fix: restore app_name variable and add Linux X11 build dependencies
Two issues were preventing cross-platform builds: 1. app_name variable was removed during v0.4.15 migration but code still uses it on macOS/Windows 2. Linux workflow was missing X11 development library installation causing build failure This restores the app_name variable and adds libx11-dev and related packages to the Linux build step.
1 parent dad90ad commit a9c6282

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-executables.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: Build Cross-Platform Executables
22

33
on:
4+
push:
5+
branches: [main]
46
release:
57
types: [created]
68
workflow_dispatch:
79
inputs:
810
release_tag:
911
description: 'Release tag (e.g., v0.4.15)'
10-
required: true
12+
required: false
1113

1214
permissions:
1315
contents: write
@@ -18,6 +20,9 @@ jobs:
1820
steps:
1921
- uses: actions/checkout@v4
2022

23+
- name: Install dependencies
24+
run: sudo apt-get update && sudo apt-get install -y xorg-dev
25+
2126
- name: Install Rust
2227
uses: dtolnay/rust-toolchain@stable
2328

src/tracker/monitor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ impl AppMonitor {
201201
match get_active_window() {
202202
Ok(active_window) => {
203203
let mut title = active_window.title.clone();
204+
let app_name = active_window.app_name.clone();
204205

205206
#[cfg(target_os = "macos")]
206207
{

0 commit comments

Comments
 (0)