mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
feat(process): add plugin (#348)
This commit is contained in:
committed by
GitHub
parent
61e7d6ede5
commit
012d32e8ed
@@ -20,6 +20,7 @@
|
||||
"tauri-plugin-http-api": "0.0.0",
|
||||
"tauri-plugin-notification-api": "0.0.0",
|
||||
"tauri-plugin-os-api": "0.0.0",
|
||||
"tauri-plugin-process-api": "0.0.0",
|
||||
"tauri-plugin-shell-api": "0.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Generated
+8
@@ -159,6 +159,7 @@ dependencies = [
|
||||
"tauri-plugin-log",
|
||||
"tauri-plugin-notification",
|
||||
"tauri-plugin-os",
|
||||
"tauri-plugin-process",
|
||||
"tauri-plugin-shell",
|
||||
"tiny_http",
|
||||
"window-shadows",
|
||||
@@ -3710,6 +3711,13 @@ dependencies = [
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-process"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"tauri",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-shell"
|
||||
version = "0.0.0"
|
||||
|
||||
@@ -25,6 +25,7 @@ tauri-plugin-dialog = { path = "../../../plugins/dialog" }
|
||||
tauri-plugin-http = { path = "../../../plugins/http", features = [ "http-multipart" ] }
|
||||
tauri-plugin-notification = { path = "../../../plugins/notification", features = [ "windows7-compat" ] }
|
||||
tauri-plugin-os = { path = "../../../plugins/os" }
|
||||
tauri-plugin-process = { path = "../../../plugins/process" }
|
||||
tauri-plugin-shell = { path = "../../../plugins/shell" }
|
||||
|
||||
[patch.crates-io]
|
||||
|
||||
@@ -38,6 +38,7 @@ pub fn run() {
|
||||
.plugin(tauri_plugin_http::init())
|
||||
.plugin(tauri_plugin_notification::init())
|
||||
.plugin(tauri_plugin_os::init())
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
.setup(move |app| {
|
||||
#[cfg(desktop)]
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import { checkUpdate, installUpdate } from '@tauri-apps/api/updater'
|
||||
import { listen } from '@tauri-apps/api/event'
|
||||
import { relaunch } from '@tauri-apps/api/process'
|
||||
import { relaunch } from 'tauri-plugin-process-api'
|
||||
|
||||
export let onMessage
|
||||
let unlisten
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { getName, getVersion, getTauriVersion } from 'tauri-plugin-app-api'
|
||||
import { relaunch, exit } from '@tauri-apps/api/process'
|
||||
import { relaunch, exit } from 'tauri-plugin-process-api'
|
||||
|
||||
let version = '0.0.0'
|
||||
let tauriVersion = '0.0.0'
|
||||
|
||||
Reference in New Issue
Block a user