(name, action)
| 649 | } |
| 650 | |
| 651 | async function openDeepLink(name, action) { |
| 652 | const value = JSON.stringify(action); |
| 653 | const url = `cap-desktop://action?value=${encodeURIComponent(value)}`; |
| 654 | if (desktopExecPath) { |
| 655 | await runCommand(name, desktopExecPath, [url]); |
| 656 | return; |
| 657 | } |
| 658 | |
| 659 | const args = desktopAppPath |
| 660 | ? ["-a", desktopAppPath, url] |
| 661 | : ["-b", desktopBundleId, url]; |
| 662 | await runCommand(name, "open", args); |
| 663 | } |
| 664 | |
| 665 | async function launchDesktopApp() { |
| 666 | if (desktopExecPath) { |
no test coverage detected