mirror of https://github.com/ospab/ostp.git
fix: declare and grant custom Tauri v2 command permissions for GUI
This commit is contained in:
parent
a31319a80a
commit
c82ec93ea7
|
|
@ -5,6 +5,7 @@
|
|||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"opener:default"
|
||||
"opener:default",
|
||||
"allow-app-commands"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
[[permission]]
|
||||
identifier = "allow-app-commands"
|
||||
description = "Enables access to core OSTP commands"
|
||||
|
||||
[permission.commands]
|
||||
allow = [
|
||||
"start_tunnel",
|
||||
"stop_tunnel",
|
||||
"get_tunnel_status",
|
||||
"get_metrics",
|
||||
"get_config",
|
||||
"save_config"
|
||||
]
|
||||
Loading…
Reference in New Issue