mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +02:00
448846b834
* Implemented writeTextFile on Android. * Added license headers. * fix fmt checks. * implement more file APIs * change file * cleanup * refactor dialog plugin to leverage new FS APIs * implement metadata functions * fix build * expose FS rust API * resolve resources on android * update pnpm * update docs --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
84 lines
1.9 KiB
JSON
84 lines
1.9 KiB
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "run-app-base",
|
|
"description": "Base permissions to run the app",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"log:default",
|
|
{
|
|
"identifier": "http:default",
|
|
"allow": [
|
|
"https://tauri.app",
|
|
{
|
|
"url": "http://localhost:3003"
|
|
}
|
|
]
|
|
},
|
|
"core:default",
|
|
"fs:default",
|
|
"core:window:allow-minimize",
|
|
"core:window:allow-maximize",
|
|
"core:window:allow-unmaximize",
|
|
"core:window:allow-close",
|
|
"core:window:allow-start-dragging",
|
|
"notification:default",
|
|
"os:allow-platform",
|
|
"dialog:allow-open",
|
|
"dialog:allow-ask",
|
|
"dialog:allow-save",
|
|
"dialog:allow-confirm",
|
|
"dialog:allow-message",
|
|
{
|
|
"identifier": "shell:allow-spawn",
|
|
"allow": [
|
|
{
|
|
"name": "sh",
|
|
"cmd": "sh",
|
|
"args": [
|
|
"-c",
|
|
{
|
|
"validator": ".+"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "cmd",
|
|
"cmd": "cmd",
|
|
"args": [
|
|
"/C",
|
|
{
|
|
"validator": ".+"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"shell:allow-kill",
|
|
"shell:allow-stdin-write",
|
|
"process:allow-exit",
|
|
"process:allow-restart",
|
|
"clipboard-manager:allow-read-text",
|
|
"clipboard-manager:allow-write-text",
|
|
"clipboard-manager:allow-read-image",
|
|
"clipboard-manager:allow-write-image",
|
|
"fs:allow-open",
|
|
"fs:allow-write",
|
|
"fs:allow-read",
|
|
"fs:allow-rename",
|
|
"fs:allow-mkdir",
|
|
"fs:allow-remove",
|
|
"fs:allow-write-text-file",
|
|
"fs:scope-download-recursive",
|
|
"fs:scope-resource-recursive",
|
|
{
|
|
"identifier": "fs:scope-appdata-recursive",
|
|
"allow": [
|
|
{
|
|
"path": "$APPDATA/db/**"
|
|
}
|
|
],
|
|
"deny": ["$APPDATA/db/*.stronghold"]
|
|
}
|
|
]
|
|
}
|