mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +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 @@ edition = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
links = "tauri-plugin-os"
|
||||
|
||||
[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 }
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
const COMMANDS: &[&str] = &[
|
||||
"platform",
|
||||
"version",
|
||||
"os_type",
|
||||
"family",
|
||||
"arch",
|
||||
"exe_extension",
|
||||
"locale",
|
||||
"hostname",
|
||||
];
|
||||
|
||||
fn main() {
|
||||
tauri_plugin::Builder::new(COMMANDS).build();
|
||||
}
|
||||
@@ -23,6 +23,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-arch"
|
||||
description = "Enables the arch command without any pre-configured scope."
|
||||
commands.allow = ["arch"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-arch"
|
||||
description = "Denies the arch command without any pre-configured scope."
|
||||
commands.deny = ["arch"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-exe-extension"
|
||||
description = "Enables the exe_extension command without any pre-configured scope."
|
||||
commands.allow = ["exe_extension"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-exe-extension"
|
||||
description = "Denies the exe_extension command without any pre-configured scope."
|
||||
commands.deny = ["exe_extension"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-family"
|
||||
description = "Enables the family command without any pre-configured scope."
|
||||
commands.allow = ["family"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-family"
|
||||
description = "Denies the family command without any pre-configured scope."
|
||||
commands.deny = ["family"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-hostname"
|
||||
description = "Enables the hostname command without any pre-configured scope."
|
||||
commands.allow = ["hostname"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-hostname"
|
||||
description = "Denies the hostname command without any pre-configured scope."
|
||||
commands.deny = ["hostname"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-locale"
|
||||
description = "Enables the locale command without any pre-configured scope."
|
||||
commands.allow = ["locale"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-locale"
|
||||
description = "Denies the locale command without any pre-configured scope."
|
||||
commands.deny = ["locale"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-os-type"
|
||||
description = "Enables the os_type command without any pre-configured scope."
|
||||
commands.allow = ["os_type"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-os-type"
|
||||
description = "Denies the os_type command without any pre-configured scope."
|
||||
commands.deny = ["os_type"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-platform"
|
||||
description = "Enables the platform command without any pre-configured scope."
|
||||
commands.allow = ["platform"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-platform"
|
||||
description = "Denies the platform command without any pre-configured scope."
|
||||
commands.deny = ["platform"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-version"
|
||||
description = "Enables the version command without any pre-configured scope."
|
||||
commands.allow = ["version"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-version"
|
||||
description = "Denies the version command without any pre-configured scope."
|
||||
commands.deny = ["version"]
|
||||
@@ -0,0 +1,66 @@
|
||||
# Permissions
|
||||
|
||||
## allow-arch
|
||||
|
||||
Enables the arch command without any pre-configured scope.
|
||||
|
||||
## deny-arch
|
||||
|
||||
Denies the arch command without any pre-configured scope.
|
||||
|
||||
## allow-exe-extension
|
||||
|
||||
Enables the exe_extension command without any pre-configured scope.
|
||||
|
||||
## deny-exe-extension
|
||||
|
||||
Denies the exe_extension command without any pre-configured scope.
|
||||
|
||||
## allow-family
|
||||
|
||||
Enables the family command without any pre-configured scope.
|
||||
|
||||
## deny-family
|
||||
|
||||
Denies the family command without any pre-configured scope.
|
||||
|
||||
## allow-hostname
|
||||
|
||||
Enables the hostname command without any pre-configured scope.
|
||||
|
||||
## deny-hostname
|
||||
|
||||
Denies the hostname command without any pre-configured scope.
|
||||
|
||||
## allow-locale
|
||||
|
||||
Enables the locale command without any pre-configured scope.
|
||||
|
||||
## deny-locale
|
||||
|
||||
Denies the locale command without any pre-configured scope.
|
||||
|
||||
## allow-os-type
|
||||
|
||||
Enables the os_type command without any pre-configured scope.
|
||||
|
||||
## deny-os-type
|
||||
|
||||
Denies the os_type command without any pre-configured scope.
|
||||
|
||||
## allow-platform
|
||||
|
||||
Enables the platform command without any pre-configured scope.
|
||||
|
||||
## deny-platform
|
||||
|
||||
Denies the platform command without any pre-configured scope.
|
||||
|
||||
## allow-version
|
||||
|
||||
Enables the version command without any pre-configured scope.
|
||||
|
||||
## deny-version
|
||||
|
||||
Denies the version command without any pre-configured scope.
|
||||
|
||||
Reference in New Issue
Block a user