mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
- Add classify.ts as the single source of truth for CLI invocation routing (discriminated union, derives known commands from Commander) - Remove all hardcoded command lists and duplicate path detection logic - Simplify shell wrappers to dumb pipes (zero classification) - Fix hot-start: use `open -n -g -a` (VS Code pattern) so second-instance event fires when app is already running - Fix cold-start race: pull-based IPC (getPendingOpenProject) so renderer fetches the pending path after React mounts, instead of push event that arrived before the listener existed - Fix asar read corruption: unpack node-entrypoint-runner.js from asar (Node.js v24 in Electron 41 can't parse package.json inside asar) - Strip ELECTRON_RUN_AS_NODE from env when spawning desktop app from CLI
15 lines
470 B
Batchfile
15 lines
470 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "RESOURCES_DIR=%SCRIPT_DIR%.."
|
|
set "APP_EXECUTABLE=%RESOURCES_DIR%\..\Paseo.exe"
|
|
if not exist "%APP_EXECUTABLE%" (
|
|
echo Bundled Paseo executable not found at %APP_EXECUTABLE% 1>&2
|
|
exit /b 1
|
|
)
|
|
|
|
set "ELECTRON_RUN_AS_NODE=1"
|
|
"%APP_EXECUTABLE%" "%RESOURCES_DIR%\app.asar.unpacked\dist\daemon\node-entrypoint-runner.js" node-script "%RESOURCES_DIR%\app.asar\node_modules\@getpaseo\cli\dist\index.js" %*
|
|
exit /b %errorlevel%
|