fix: preserve zsh prompt in packaged desktop (#544)
This commit is contained in:
@@ -9,6 +9,7 @@ files:
|
||||
- dist/**/*
|
||||
asarUnpack:
|
||||
- dist/daemon/node-entrypoint-runner.js
|
||||
- node_modules/@getpaseo/server/dist/server/terminal/shell-integration/**/*
|
||||
extraResources:
|
||||
- from: ../app/dist
|
||||
to: app-dist
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const packageRoot = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
|
||||
|
||||
describe("desktop packaging", () => {
|
||||
it("unpacks server zsh shell integration files for external shells", () => {
|
||||
const config = readFileSync(join(packageRoot, "electron-builder.yml"), "utf8");
|
||||
|
||||
expect(config).toContain(
|
||||
"node_modules/@getpaseo/server/dist/server/terminal/shell-integration/**/*",
|
||||
);
|
||||
expect(config).not.toContain(
|
||||
"node_modules/@getpaseo/server/dist/src/terminal/shell-integration/**/*",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user