Skip to content

Commit 62859d8

Browse files
authored
chore: Normalize production app name casing (#1158)
1 parent 5e8ba7c commit 62859d8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/code/drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from "node:path";
33
import { defineConfig } from "drizzle-kit";
44

55
const appName =
6-
process.env.NODE_ENV === "production" ? "PostHog Code" : "posthog-code-dev";
6+
process.env.NODE_ENV === "production" ? "posthog-code" : "posthog-code-dev";
77
const userDataPath = path.join(
88
os.homedir(),
99
"Library",

apps/code/src/main/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { fixPath } from "./utils/fixPath.js";
1515
const isDev = !app.isPackaged;
1616

1717
// Set app name for single-instance lock, crashReporter, etc
18-
const appName = isDev ? "posthog-code-dev" : "PostHog Code";
18+
const appName = isDev ? "posthog-code-dev" : "posthog-code";
1919
app.setName(isDev ? "PostHog Code (Development)" : "PostHog Code");
2020

2121
// Set userData path for @posthog/code

apps/code/tests/e2e/tests/main-process.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ test.describe("Main Process", () => {
3636
return app.getPath("userData");
3737
});
3838

39-
expect(userDataPath).toContain("PostHog Code");
39+
expect(userDataPath).toContain("posthog-code");
4040
});
4141
});

0 commit comments

Comments
 (0)