mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-10 14:13:55 +02: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>
This commit is contained in:
@@ -6,10 +6,14 @@ authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
links = "tauri-plugin-positioner"
|
||||
|
||||
[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]
|
||||
serde = { workspace = true }
|
||||
@@ -20,4 +24,4 @@ thiserror = { workspace = true }
|
||||
serde_repr = "0.1"
|
||||
|
||||
[features]
|
||||
tray-icon = [ "tauri/tray-icon" ]
|
||||
tray-icon = ["tauri/tray-icon"]
|
||||
|
||||
@@ -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] = &["move_window"];
|
||||
|
||||
fn main() {
|
||||
tauri_plugin::Builder::new(COMMANDS).build();
|
||||
}
|
||||
@@ -24,6 +24,6 @@
|
||||
"LICENSE"
|
||||
],
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-alpha.13"
|
||||
"@tauri-apps/api": "2.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
schemas/
|
||||
@@ -0,0 +1 @@
|
||||
schemas/
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-move-window"
|
||||
description = "Enables the move_window command without any pre-configured scope."
|
||||
commands.allow = ["move_window"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-move-window"
|
||||
description = "Denies the move_window command without any pre-configured scope."
|
||||
commands.deny = ["move_window"]
|
||||
@@ -0,0 +1,14 @@
|
||||
# Permissions
|
||||
|
||||
## allow-move-window
|
||||
|
||||
Enables the move_window command without any pre-configured scope.
|
||||
|
||||
## deny-move-window
|
||||
|
||||
Denies the move_window command without any pre-configured scope.
|
||||
|
||||
## default
|
||||
|
||||
Allows the move_window command
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
[default]
|
||||
description = "Allows the move_window command"
|
||||
permissions = ["allow-move-window"]
|
||||
Reference in New Issue
Block a user