diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd8d435..8716ad8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: if: matrix.platform == 'ubuntu-24.04' run: | sudo apt-get update - sudo apt-get install -y libasound2-dev libudev-dev pkg-config libwebkit2gtk-4.0-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf + sudo apt-get install -y libasound2-dev libudev-dev pkg-config libwebkit2gtk-4.1-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf - name: install pnpm run: npm install -g pnpm - name: install frontend dependencies diff --git a/CHANGELOG.md b/CHANGELOG.md index 2503366..6080834 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 2.2.0 + - Smaller sidebar design + - New Settings Page design + - Fixed Gitification not polling notifications by using Rust based timer instead of JavaScript timer. + ### 2.1.1 - Fixed tray icon template on mac. - diff --git a/package.json b/package.json index 4371344..ae7974c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gitification", "type": "module", - "version": "2.1.1", + "version": "2.2.0", "files": [ "README.md", "package.json" diff --git a/public/Geist-wght.ttf b/public/Geist-wght.ttf new file mode 100644 index 0000000..f63f0af Binary files /dev/null and b/public/Geist-wght.ttf differ diff --git a/public/GeistMono-wght.ttf b/public/GeistMono-wght.ttf new file mode 100644 index 0000000..f1f640b Binary files /dev/null and b/public/GeistMono-wght.ttf differ diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 9abc1d6..e9db03e 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1622,6 +1622,7 @@ dependencies = [ "tauri-plugin-single-instance", "tauri-plugin-store", "tauri-plugin-updater", + "tokio", ] [[package]] diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d34f24f..1b15a46 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -16,6 +16,7 @@ tauri-build = { version = "2", features = [] } [dependencies] serde_json = "1.0" serde = { version = "1.0", features = [ "derive" ] } +tokio = { version = "1", features = ["time"] } tauri = { version = "2", features = ["macos-private-api", "tray-icon", "image-png", "image-ico"] } rodio = "0.20.1" tauri-plugin-store = ">=2.1.0, <3" diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 60a8f49..b64ce38 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -8,6 +8,7 @@ mod commands; use commands::{ go_to_notification_settings, play_notification_sound, set_icon_template, }; +use std::time::Duration; use tauri::{ tray::{MouseButton, MouseButtonState, TrayIconEvent}, App, Emitter, Manager, PhysicalPosition, WindowEvent, @@ -18,6 +19,17 @@ fn handle_setup(app: &mut App) -> Result<(), Box> { let window = app.get_webview_window("main").expect("window not found"); window.set_always_on_top(true)?; + let app_handle = app.handle().clone(); + tauri::async_runtime::spawn(async move { + let mut interval = tokio::time::interval(Duration::from_secs(10)); + interval.tick().await; + + loop { + interval.tick().await; + let _ = app_handle.emit("poll_tick", ()); + } + }); + #[cfg(target_os = "macos")] { use tauri::ActivationPolicy; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 41e8124..02527c8 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/refs/heads/dev/crates/tauri-schema-generator/schemas/config.schema.json", "build": { "beforeDevCommand": "pnpm dev", "beforeBuildCommand": "pnpm build", @@ -48,7 +49,7 @@ "createUpdaterArtifacts": true }, "productName": "Gitification", - "version": "2.1.1", + "version": "2.2.0", "identifier": "app.gitification", "plugins": { "deep-link": { @@ -80,7 +81,7 @@ "trayIcon": { "iconPath": "icons/tray/icon.png", "iconAsTemplate": true, - "menuOnLeftClick": false + "showMenuOnLeftClick": false } } } diff --git a/src/App.vue b/src/App.vue index 4998b24..e63ea0f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,8 @@