Skip to content

Commit

Permalink
Upgrade to tauri 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhaya committed Oct 7, 2024
1 parent af846aa commit 6b7d4a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tauri-plugin-theme"
links = "tauri-plugin-theme"
version = "2.1.1"
version = "2.1.2"
edition = "2021"
license = "MIT"
repository = "https://github.com/wyhaya/tauri-plugin-theme"
Expand All @@ -10,10 +10,10 @@ keywords = ["tauri", "plugin", "theme"]
readme = "README.md"

[build-dependencies]
tauri-plugin = { version = "2.0.0-rc", features = ["build"] }
tauri-plugin = { version = "2.0", features = ["build"] }

[dependencies]
tauri = { version = "2.0.0-rc" }
tauri = { version = "2.0" }
serde = { version = "1.0", features = ["derive"] }

[target."cfg(target_os = \"macos\")".dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/wyhaya/tauri-plugin-theme/assets/23690145/2422ce95-418d-4f07-
## Install

```bash
cargo add tauri-plugin-theme@2.1.1
cargo add tauri-plugin-theme@2.1.2
```

```rust
Expand Down
2 changes: 1 addition & 1 deletion permissions/autogenerated/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Allow all
- `allow-set-theme`
- `allow-get-theme`

## Permission Table
## Permission Table

<table>
<tr>
Expand Down
30 changes: 10 additions & 20 deletions permissions/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,39 +295,29 @@
"type": "string",
"oneOf": [
{
"description": "allow-get-theme -> Enables the get_theme command without any pre-configured scope.",
"description": "Enables the get_theme command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-get-theme"
]
"const": "allow-get-theme"
},
{
"description": "deny-get-theme -> Denies the get_theme command without any pre-configured scope.",
"description": "Denies the get_theme command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-get-theme"
]
"const": "deny-get-theme"
},
{
"description": "allow-set-theme -> Enables the set_theme command without any pre-configured scope.",
"description": "Enables the set_theme command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-set-theme"
]
"const": "allow-set-theme"
},
{
"description": "deny-set-theme -> Denies the set_theme command without any pre-configured scope.",
"description": "Denies the set_theme command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-set-theme"
]
"const": "deny-set-theme"
},
{
"description": "default -> Allow all",
"description": "Allow all",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
Expand Down

0 comments on commit 6b7d4a2

Please sign in to comment.