mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
The desktop daemon resolved the CLI through a packaged module entrypoint that is not an executable outside the archive. Publish the existing bundled shim as the daemon's authoritative CLI path so terminal hooks use a callable command.
20 lines
727 B
Batchfile
20 lines
727 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"
|
|
set "PASEO_NODE_ENV=production"
|
|
rem PASEO_DESKTOP_MANAGED marks daemons started through this bundled CLI as
|
|
rem desktop-managed, so the desktop app restarts them when it upgrades.
|
|
set "PASEO_DESKTOP_MANAGED=1"
|
|
set "PASEO_CLI=%~f0"
|
|
"%APP_EXECUTABLE%" --disable-warning=DEP0040 "%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%
|