mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
On Windows the bundled orca.cmd runs Orca.exe with the unpacked CLI entrypoint and ELECTRON_RUN_AS_NODE=1. When that env var is dropped, Orca boots as a GUI, loses the single-instance lock to an already-running window, and exits silently with no stdout. Add a packaged-CLI-entry redirect that detects a Windows launch whose argv carries the known in-package CLI entrypoint and re-runs it in Electron node mode before the single-instance lock gate can bounce it, then exits with the CLI's status. Mirrors the existing maybeRedirectAppImageCliLaunch pattern. Fixes #5774 Co-authored-by: brennanb2025 <brennanb2025@users.noreply.github.com>