mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
add plugins
This commit is contained in:
parent
b2de4c0461
commit
aef119bb2b
1046
src-tauri/Cargo.lock
generated
1046
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -24,8 +24,15 @@ serde = { version = "1.0", features = ["derive"] }
|
|||||||
log = "0.4"
|
log = "0.4"
|
||||||
tauri = { version = "2.0.0-rc.15", features = [] }
|
tauri = { version = "2.0.0-rc.15", features = [] }
|
||||||
tauri-plugin-log = "2.0.0-rc"
|
tauri-plugin-log = "2.0.0-rc"
|
||||||
|
tauri-plugin-clipboard-manager = "2.0.0-rc.4"
|
||||||
|
tauri-plugin-dialog = "2.0.0-rc.7"
|
||||||
|
tauri-plugin-fs = "2.0.0-rc.5"
|
||||||
tauri-plugin-http = "2.0.0-rc.5"
|
tauri-plugin-http = "2.0.0-rc.5"
|
||||||
tauri-plugin-updater = "2.0.0-beta.0"
|
tauri-plugin-updater = "2.0.0-rc.3"
|
||||||
|
tauri-plugin-notification = "2.0.0-rc.5"
|
||||||
|
tauri-plugin-shell = "2.0.0-rc.3"
|
||||||
|
tauri-plugin-window-state = "2.0.0-rc.5"
|
||||||
|
|
||||||
|
|
||||||
[replace]
|
[replace]
|
||||||
# using this version from github fixed data_directory for webkitgtk
|
# using this version from github fixed data_directory for webkitgtk
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
"core:default",
|
"core:default",
|
||||||
"core:window:allow-start-dragging",
|
"core:window:allow-start-dragging",
|
||||||
"core:window:allow-maximize",
|
"core:window:allow-maximize",
|
||||||
|
"clipboard-manager:allow-write-text",
|
||||||
|
"fs:default",
|
||||||
|
"fs:allow-exists",
|
||||||
{
|
{
|
||||||
"identifier": "http:default",
|
"identifier": "http:default",
|
||||||
"allow": [
|
"allow": [
|
||||||
@ -17,6 +20,10 @@
|
|||||||
"url": "http://*"
|
"url": "http://*"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"notification:default",
|
||||||
|
"shell:allow-open",
|
||||||
|
"window-state:allow-restore-state",
|
||||||
|
"window-state:allow-save-window-state"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||||
pub fn run() {
|
pub fn run() {
|
||||||
tauri::Builder::default()
|
tauri::Builder::default()
|
||||||
|
.plugin(tauri_plugin_clipboard_manager::init())
|
||||||
|
.plugin(tauri_plugin_dialog::init())
|
||||||
|
.plugin(tauri_plugin_fs::init())
|
||||||
.plugin(tauri_plugin_http::init())
|
.plugin(tauri_plugin_http::init())
|
||||||
|
.plugin(tauri_plugin_notification::init())
|
||||||
|
.plugin(tauri_plugin_shell::init())
|
||||||
|
.plugin(tauri_plugin_window_state::Builder::default().build())
|
||||||
.setup(|app| {
|
.setup(|app| {
|
||||||
if cfg!(debug_assertions) {
|
if cfg!(debug_assertions) {
|
||||||
app.handle().plugin(
|
app.handle().plugin(
|
||||||
@ -9,6 +15,7 @@ pub fn run() {
|
|||||||
.level(log::LevelFilter::Info)
|
.level(log::LevelFilter::Info)
|
||||||
.build(),
|
.build(),
|
||||||
)?;
|
)?;
|
||||||
|
app.handle().plugin(tauri_plugin_updater::Builder::new().build())?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user