Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Flm Compagnon is a modern GUI designed to accompany and manage the **FastFlowLM
## 📸 Videos

### 🗂️ Interface
![gif demo interface](screen/demo_interface.gif)]
![gif demo interface](screen/demo_interface.gif)

### 🔔 System Tray
![gif demo systreay](screen/demo_notif.gif)]
![gif demo systreay](screen/demo_notif.gif)

## 📋 To do

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flm-companion",
"private": true,
"version": "0.5.0",
"version": "0.5.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
154 changes: 138 additions & 16 deletions src/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flm-companion"
version = "0.5.0"
version = "0.5.1"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
Expand Down Expand Up @@ -31,4 +31,5 @@ tauri-plugin-dialog = "2"
tauri-plugin-single-instance = "2"
tauri-plugin-autostart = "2"
tauri-plugin-process = "2"
sysinfo = "0.33"

2 changes: 2 additions & 0 deletions src/src-tauri/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
pub mod npu;
pub mod system;
pub mod tray;

pub use npu::*;
pub use system::*;
pub use tray::*;
14 changes: 13 additions & 1 deletion src/src-tauri/src/commands/npu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,20 @@ pub fn get_npu_stats() -> Result<NpuStats, String> {
}
"#;

#[cfg(windows)]
use std::os::windows::process::CommandExt;
const CREATE_NO_WINDOW: u32 = 0x08000000;

let output = Command::new("powershell")
.args(["-NoProfile", "-Command", script])
.args([
"-NonInteractive",
"-NoProfile",
"-WindowStyle",
"Hidden",
"-Command",
script,
])
.creation_flags(CREATE_NO_WINDOW)
.output()
.map_err(|e| format!("Failed to execute PowerShell: {}", e))?;

Expand Down
Loading
Loading