Initial migration to Tauri 2.0

- Updated package.json with project metadata and moves dependencies to devDependencies.
- Adds .editorconfig for consistent code style
- Updated VSCode and .NET project settings for improved development workflow.
This commit is contained in:
Tony Bark 2026-01-07 05:18:57 -05:00
parent 81799106f8
commit 2cd45c4a6c
13 changed files with 1243 additions and 664 deletions

33
src-tauri/src/lib.rs Normal file
View file

@ -0,0 +1,33 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
use webbrowser;
// use tauri::menu::MenuBuilder;
#[tauri::command]
fn open_browser(address: &str) {
webbrowser::open(address).expect("Failed to open defualt browser.");
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![open_browser])
.setup(|app| {
// TODO: Redo menu bar to return to home screen
/**
let menu = MenuBuilder::new(app)
.text("open", "Open")
.text("close", "Close")
.check("check_item", "Check Item")
.separator()
.text("disabled_item", "Disabled Item")
.text("status", "Status: Processing...")
.build()?;
app.set_menu(menu.clone())?;
**/
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

View file

@ -1,16 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use webbrowser;
#[tauri::command]
fn open_browser(address: &str) {
webbrowser::open(address).expect("Failed to open defualt browser.");
}
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![open_browser])
.run(tauri::generate_context!())
.expect("error while running tauri application");
entries_lib::run()
}