mirror of
https://github.com/tauri-apps/tauri-plugin-process.git
synced 2026-01-31 00:55:17 +01:00
feat: update to tauri beta, add permissions (#862)
Co-authored-by: Lucas Nogueira <lucas@tauri.app> Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev> Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/7768617455 Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
This commit is contained in:
@@ -6,10 +6,14 @@ edition = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
links = "tauri-plugin-process"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
rustc-args = [ "--cfg", "docsrs" ]
|
||||
rustdoc-args = [ "--cfg", "docsrs" ]
|
||||
rustc-args = ["--cfg", "docsrs"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-plugin = { workspace = true, features = ["build"] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { workspace = true }
|
||||
|
||||
9
build.rs
Normal file
9
build.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
const COMMANDS: &[&str] = &["exit", "restart"];
|
||||
|
||||
fn main() {
|
||||
tauri_plugin::Builder::new(COMMANDS).build();
|
||||
}
|
||||
2
node_modules/@tauri-apps/api
generated
vendored
2
node_modules/@tauri-apps/api
generated
vendored
@@ -1 +1 @@
|
||||
../../../../node_modules/.pnpm/@tauri-apps+api@2.0.0-alpha.13/node_modules/@tauri-apps/api
|
||||
../../../../node_modules/.pnpm/@tauri-apps+api@2.0.0-beta.0/node_modules/@tauri-apps/api
|
||||
@@ -23,6 +23,6 @@
|
||||
"LICENSE"
|
||||
],
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-alpha.13"
|
||||
"@tauri-apps/api": "2.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
||||
1
permissions/.dgitignore
Normal file
1
permissions/.dgitignore
Normal file
@@ -0,0 +1 @@
|
||||
schemas/
|
||||
1
permissions/.gitignore
vendored
Normal file
1
permissions/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
schemas/
|
||||
13
permissions/autogenerated/commands/exit.toml
Normal file
13
permissions/autogenerated/commands/exit.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-exit"
|
||||
description = "Enables the exit command without any pre-configured scope."
|
||||
commands.allow = ["exit"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-exit"
|
||||
description = "Denies the exit command without any pre-configured scope."
|
||||
commands.deny = ["exit"]
|
||||
13
permissions/autogenerated/commands/restart.toml
Normal file
13
permissions/autogenerated/commands/restart.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-restart"
|
||||
description = "Enables the restart command without any pre-configured scope."
|
||||
commands.allow = ["restart"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-restart"
|
||||
description = "Denies the restart command without any pre-configured scope."
|
||||
commands.deny = ["restart"]
|
||||
18
permissions/autogenerated/reference.md
Normal file
18
permissions/autogenerated/reference.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Permissions
|
||||
|
||||
## allow-exit
|
||||
|
||||
Enables the exit command without any pre-configured scope.
|
||||
|
||||
## deny-exit
|
||||
|
||||
Denies the exit command without any pre-configured scope.
|
||||
|
||||
## allow-restart
|
||||
|
||||
Enables the restart command without any pre-configured scope.
|
||||
|
||||
## deny-restart
|
||||
|
||||
Denies the restart command without any pre-configured scope.
|
||||
|
||||
Reference in New Issue
Block a user