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:
Tillmann
2024-02-04 03:14:41 +09:00
committed by GitHub
parent 506ce4835b
commit d198c01486
387 changed files with 21883 additions and 943 deletions
+6 -2
View File
@@ -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 }
+18
View File
@@ -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();
}
+1 -1
View File
@@ -23,6 +23,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.13"
"@tauri-apps/api": "2.0.0-beta.0"
}
}
+1
View File
@@ -0,0 +1 @@
schemas/
+1
View File
@@ -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.