I am trying to run a binary with an argument as a sidecar but I cannot understand how to do it in the rust backend,
what I did so far:
- tauri.conf.json:
"tauri": {
"allowlist": {
"all": false,
"shell": {
"all": false,
"open": true,
"sidecar": true,
"scope": [
{ "name": "binaries/rusty_torrent", "sidecar": true, "args": ["-V"] }
]
}
},
"bundle": {
"active": true,
"targets": "all",
"identifier": "com.tauri.dev",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"externalBin": [
"binaries/rusty_torrent"
]
- the binary is in
src-tauri/binaries/rusty_torrent-x86_64-pc-windows-msvc.exe - Cargo.toml
[dependencies]
tauri = { version = "1.4", features = [ "shell-sidecar", "shell-open", "process-command-api"] }
continue in first reply as there is a 2000 char limit...
anyone got any tips, haven't developed with tauri lately and I am a begginer developer
thanks