fix(desktop): restore packaged terminal hooks
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.
This commit is contained in:
@@ -308,16 +308,16 @@ function resolveExternalProcessPath(filePath: string): string {
|
||||
}
|
||||
|
||||
export function resolvePaseoCliBinDir(): string | null {
|
||||
const cliEntrypoint = resolvePaseoCliBinEntrypoint();
|
||||
if (!cliEntrypoint) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const externalCliEntrypoint = resolveExternalProcessPath(cliEntrypoint);
|
||||
return findNpmBinDir(dirname(externalCliEntrypoint)) ?? dirname(externalCliEntrypoint);
|
||||
const cliExecutable = resolvePaseoCliExecutablePath();
|
||||
return cliExecutable ? dirname(cliExecutable) : null;
|
||||
}
|
||||
|
||||
export function resolvePaseoCliExecutablePath(): string | null {
|
||||
const configuredCli = process.env.PASEO_CLI?.trim();
|
||||
if (configuredCli) {
|
||||
return resolvePath(configuredCli);
|
||||
}
|
||||
|
||||
const cliEntrypoint = resolvePaseoCliBinEntrypoint();
|
||||
if (!cliEntrypoint) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user