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:
@@ -52,7 +52,7 @@ function createFakeMacBundle(options: { includeHelper: boolean }): {
|
||||
helperPath,
|
||||
[
|
||||
"#!/bin/sh",
|
||||
'printf "helper env=%s/%s\\n" "$ELECTRON_RUN_AS_NODE" "$PASEO_NODE_ENV"',
|
||||
'printf "helper env=%s/%s cli=%s\\n" "$ELECTRON_RUN_AS_NODE" "$PASEO_NODE_ENV" "$PASEO_CLI"',
|
||||
'printf "args=%s\\n" "$*"',
|
||||
"",
|
||||
].join("\n"),
|
||||
@@ -114,7 +114,7 @@ describe("desktop packaging", () => {
|
||||
const result = spawnSync(bundle.shimPath, ["--version"], { encoding: "utf8" });
|
||||
|
||||
expect(result.status).toBe(0);
|
||||
expect(result.stdout).toContain("helper env=1/production");
|
||||
expect(result.stdout).toContain(`helper env=1/production cli=${bundle.shimPath}`);
|
||||
expect(result.stdout).toContain("node-entrypoint-runner.js");
|
||||
expect(result.stdout).toContain("node-script");
|
||||
expect(result.stdout).toContain("@getpaseo/cli/dist/index.js");
|
||||
|
||||
Reference in New Issue
Block a user