mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
An in-app update and the startup version check again use the desktopManaged flag in paseo.pid, while Manage built-in daemon is on. A daemon that an earlier Desktop session launched is now replaced on update. A daemon that the user started through the CLI is still never stopped automatically. Closes #6385.
17 lines
549 B
Batchfile
17 lines
549 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"
|
|
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%
|