mirror of
https://github.com/nimbold/Firelink.git
synced 2026-07-26 12:08:27 +00:00
a40e6cfef8
- Replace tokio::process with tauri_plugin_shell sidecar API for native cross-compilation bundle execution. - Implement non-blocking stdout/stderr multiplexing in yt-dlp spawn to prevent OS pipe buffer deadlocks. - Refactor capabilities to restrict execution explicitly to sidecars instead of wildcards. - Rename local binaries to strictly adhere to target-triple architecture suffixes. - Drop manual get_binary_name path resolutions in favor of Tauri's externalBin bundler.
37 lines
747 B
JSON
37 lines
747 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Capability for the main window",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"core:window:allow-start-dragging",
|
|
"opener:default",
|
|
"dialog:default",
|
|
"notification:default",
|
|
"notification:allow-is-permission-granted",
|
|
"shell:allow-execute",
|
|
{
|
|
"identifier": "shell:allow-execute",
|
|
"allow": [
|
|
{
|
|
"cmd": "yt-dlp",
|
|
"args": true
|
|
},
|
|
{
|
|
"cmd": "aria2c",
|
|
"args": true
|
|
},
|
|
{
|
|
"cmd": "ffmpeg",
|
|
"args": true
|
|
},
|
|
{
|
|
"cmd": "deno",
|
|
"args": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|