feat(core): Added core startup and debugging features
- Introduced the tauri-plugin-os, tauri-plugin-shell, and tauri-plugin-process plugins - Added the coreStart function to execute shell commands to start the core - Added the coreLog page and MainConsole component for debugging output - Introduced vue-web-terminal to implement a terminal interface - Removed the old Exe and Group modules and related code
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
|
||||
use crate::group::add_group;
|
||||
use crate::spary::spary_switch;
|
||||
use tauri_plugin_sql::{Migration, MigrationKind};
|
||||
mod exe;
|
||||
mod group;
|
||||
mod spary;
|
||||
mod cores;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
@@ -31,6 +27,9 @@ pub fn run() {
|
||||
}
|
||||
];
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
.plugin(tauri_plugin_os::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.plugin(
|
||||
tauri_plugin_sql::Builder::default()
|
||||
@@ -38,7 +37,7 @@ pub fn run() {
|
||||
.build(),
|
||||
)
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![spary_switch, add_group])
|
||||
.invoke_handler(tauri::generate_handler![spary_switch])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user