Skip to content

Commit

Permalink
modified: Cargo.lock
Browse files Browse the repository at this point in the history
	modified:   Cargo.toml
	modified:   src/main.rs
	modified:   ../index.html
	modified:   ../src/main.js
	modified:   ../src/styles.css
  • Loading branch information
death7654 committed Sep 10, 2023
1 parent 33e74f4 commit 4be0625
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src-tauri/Cargo.lock

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

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tauri = { version = "1.4", features = [ "window-center", "window-start-dragging"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sysinfo = "0.29.10"
open = "5.0.0"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand Down
7 changes: 7 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
get_bios_version,
open_link,
get_cpu_usage,
get_ram_usage,
get_hostname,
Expand Down Expand Up @@ -212,3 +213,9 @@ async fn get_cbmem() -> String {
};
return String::from(cbmem);
}
#[tauri::command]
async fn open_link(){
open::that("https://github.com/death7654/Chrultrabook-Windows-Controller");
return;
}

0 comments on commit 4be0625

Please sign in to comment.