mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-18 23:07:27 +02:00
* feat(clipboard-manager): add support for writing secrets add `write_secret` command that writes a text into the clipboard and hints clipboard managers to not save the text. uses `arboard`'s `SetExtLinux`, `SetExtWindows`, and `SetExtApple` extensions for each platform. * fix(clipboard-manager): require arboard 3.6 * chore(clipboard-manager): add license header to secret.rs * fix(clipboard-manager): only exclude from monitoring on Windows * refactor(clipboard-manager): replace ExcludeSecret trait with a function * chore(clipboard-manager): drop redundant cfg(desktop) in desktop.rs * refactor(clipboard-manager): share clipboard access in a helper * feat(clipboard-manager): implement write_secret on Android and iOS * docs(clipboard-manager): document writeSecret * chore(clipboard-manager): add change file for writeSecret * test(clipboard-manager): cover writeSecret in e2e --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
149 lines
3.3 KiB
JSON
149 lines
3.3 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"
|
|
},
|
|
{
|
|
"url": "http://127.0.0.1:3004"
|
|
}
|
|
]
|
|
},
|
|
"core:default",
|
|
"core:app:allow-set-app-theme",
|
|
"core:window:allow-minimize",
|
|
"core:window:allow-toggle-maximize",
|
|
"core:window:allow-set-size",
|
|
"core:window:allow-close",
|
|
"core:webview:allow-create-webview-window",
|
|
"core:window:allow-start-dragging",
|
|
"notification:default",
|
|
"os:default",
|
|
"os:allow-hostname",
|
|
"dialog:default",
|
|
{
|
|
"identifier": "shell:allow-spawn",
|
|
"allow": [
|
|
{
|
|
"name": "sh",
|
|
"cmd": "sh",
|
|
"args": [
|
|
"-c",
|
|
{
|
|
"validator": ".+"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "cmd",
|
|
"cmd": "cmd",
|
|
"args": [
|
|
"/C",
|
|
{
|
|
"validator": ".+"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "shell:allow-execute",
|
|
"allow": [
|
|
{
|
|
"name": "sh",
|
|
"cmd": "sh",
|
|
"args": [
|
|
"-c",
|
|
{
|
|
"validator": ".+"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "cmd",
|
|
"cmd": "cmd",
|
|
"args": [
|
|
"/C",
|
|
{
|
|
"validator": ".+"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"shell:default",
|
|
"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",
|
|
"clipboard-manager:allow-write-html",
|
|
"clipboard-manager:allow-clear",
|
|
"clipboard-manager:allow-write-secret",
|
|
"fs:default",
|
|
"fs:read-meta",
|
|
"fs:allow-open",
|
|
"fs:allow-write",
|
|
"fs:allow-read",
|
|
"fs:allow-rename",
|
|
"fs:allow-mkdir",
|
|
"fs:allow-remove",
|
|
"fs:allow-write-text-file",
|
|
"fs:allow-write-file",
|
|
"fs:allow-create",
|
|
"fs:allow-copy-file",
|
|
"fs:allow-seek",
|
|
"fs:allow-truncate",
|
|
"fs:allow-ftruncate",
|
|
"fs:allow-unwatch",
|
|
"fs:scope-download-recursive",
|
|
"fs:scope-resource-recursive",
|
|
{
|
|
"identifier": "fs:scope-appdata-recursive",
|
|
"allow": [
|
|
{
|
|
"path": "$APPDATA/db/"
|
|
},
|
|
{
|
|
"path": "$APPDATA/db/**"
|
|
}
|
|
],
|
|
"deny": ["$APPDATA/db/*.stronghold"]
|
|
},
|
|
"store:default",
|
|
"opener:default",
|
|
{
|
|
"identifier": "opener:allow-open-url",
|
|
"allow": [
|
|
{
|
|
"url": "https://*",
|
|
"app": "inAppBrowser"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"identifier": "opener:allow-open-path",
|
|
"allow": [{ "path": "$APPDATA" }, { "path": "$APPDATA/**" }]
|
|
},
|
|
"upload:default",
|
|
"deep-link:default",
|
|
"deep-link:allow-register",
|
|
"deep-link:allow-unregister",
|
|
"deep-link:allow-is-registered",
|
|
"sql:default",
|
|
"sql:allow-execute",
|
|
"websocket:default"
|
|
]
|
|
}
|