Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
"tailwindcss": "^4.0.0",
"vite-plus": "catalog:"
},
"productName": "T3 Code (Alpha)"
"productName": "T3 Code (incognitojam Alpha)"
}
5 changes: 3 additions & 2 deletions apps/desktop/scripts/electron-launcher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ const repoRoot = NodePath.resolve(desktopDir, "..", "..");
const devBundleIdSuffix = NodePath.basename(repoRoot)
.toLowerCase()
.replaceAll(/[^a-z0-9]+/g, "");
export const APP_DISPLAY_NAME = isDevelopment ? "T3 Code (Dev)" : "T3 Code (Alpha)";
const appStageLabel = isDevelopment ? "Dev" : "Alpha";
export const APP_DISPLAY_NAME = `T3 Code (incognitojam ${appStageLabel})`;
export const APP_BUNDLE_ID = isDevelopment
? `com.t3tools.t3code.dev.${devBundleIdSuffix || "local"}`
: "com.t3tools.t3code";
: "dev.incognitojam.t3code";
const APP_PROTOCOL_SCHEMES = isDevelopment ? ["t3code-dev"] : ["t3code"];
const LAUNCHER_VERSION = 14;
const defaultIconPath = NodePath.join(desktopDir, "resources", "icon.icns");
Expand Down
7 changes: 5 additions & 2 deletions apps/desktop/src/app/DesktopAppIdentity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,11 @@ describe("DesktopAppIdentity", () => {
const identity = yield* DesktopAppIdentity.DesktopAppIdentity;
yield* identity.configure;

assert.deepEqual(calls.setName, ["T3 Code (Alpha)"]);
assert.equal(calls.setAboutPanelOptions[0]?.applicationName, "T3 Code (Alpha)");
assert.deepEqual(calls.setName, ["T3 Code (incognitojam Alpha)"]);
assert.equal(
calls.setAboutPanelOptions[0]?.applicationName,
"T3 Code (incognitojam Alpha)",
);
assert.equal(calls.setAboutPanelOptions[0]?.applicationVersion, "1.2.3");
assert.equal(calls.setAboutPanelOptions[0]?.version, "0123456789ab");
assert.deepEqual(calls.setDockIcon, ["/icon.png"]);
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/app/DesktopEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function resolveDesktopAppBranding(input: {
return {
baseName: APP_BASE_NAME,
stageLabel,
displayName: `${APP_BASE_NAME} (${stageLabel})`,
displayName: `${APP_BASE_NAME} (incognitojam ${stageLabel})`,
};
}

Expand Down Expand Up @@ -213,7 +213,7 @@ const make = Effect.fn("desktop.environment.make")(function* (
branding,
displayName,
appUserModelId: Option.getOrElse(config.appUserModelIdOverride, () =>
isDevelopment ? "com.t3tools.t3code.dev" : "com.t3tools.t3code",
isDevelopment ? "com.t3tools.t3code.dev" : "dev.incognitojam.t3code",
),
linuxDesktopEntryName: isDevelopment ? "t3code-dev.desktop" : "t3code.desktop",
linuxWmClass: isDevelopment ? "t3code-dev" : "t3code",
Expand Down
15 changes: 9 additions & 6 deletions scripts/build-desktop-artifact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
assert.equal(resolveDesktopUpdateChannel("0.0.17"), "latest");
});

it("switches desktop packaging product names to nightly for nightly builds", () => {
assert.equal(resolveDesktopProductName("0.0.17"), "T3 Code (Alpha)");
assert.equal(resolveDesktopProductName("0.0.17-nightly.20260413.42"), "T3 Code (Nightly)");
it("uses the fork identity for desktop packaging", () => {
assert.equal(resolveDesktopProductName("0.0.17"), "T3 Code (incognitojam Alpha)");
assert.equal(
resolveDesktopProductName("0.0.17-nightly.20260413.42"),
"T3 Code (incognitojam Nightly)",
);
});

it("switches desktop packaging icons to the nightly artwork for nightly versions", () => {
Expand Down Expand Up @@ -409,7 +412,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
});

assert.deepStrictEqual(configuration, {
appId: "com.t3tools.t3code",
appId: "dev.incognitojam.t3code",
teamId: "ABC1234567",
rpDomains: ["example.clerk.accounts.dev"],
provisioningProfilePath: "/tmp/t3code.provisionprofile",
Expand All @@ -429,7 +432,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
"clerk.example.com",
"example.clerk.accounts.dev",
]);
assert.include(entitlements, "<string>ABC1234567.com.t3tools.t3code</string>");
assert.include(entitlements, "<string>ABC1234567.dev.incognitojam.t3code</string>");
assert.include(entitlements, "<string>webcredentials:clerk.example.com</string>");
assert.include(entitlements, "<string>webcredentials:example.clerk.accounts.dev</string>");
assert.include(entitlements, "<key>com.apple.security.cs.allow-jit</key>");
Expand Down Expand Up @@ -524,7 +527,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
});

const mac = config.mac as Record<string, unknown>;
assert.equal(config.appId, "com.t3tools.t3code");
assert.equal(config.appId, "dev.incognitojam.t3code");
assert.equal(mac.entitlements, "/tmp/entitlements.mac.plist");
assert.equal(mac.provisioningProfile, "/tmp/t3code.provisionprofile");
assert.deepStrictEqual(mac.protocols, [
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-desktop-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { Command, Flag } from "effect/unstable/cli";
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";

const LINUX_ICON_SIZES = [16, 22, 24, 32, 48, 64, 128, 256, 512] as const;
const DESKTOP_APP_ID = "com.t3tools.t3code";
const DESKTOP_APP_ID = "dev.incognitojam.t3code";
const APPLE_TEAM_ID_PATTERN = /^[A-Z0-9]{10}$/u;

const BuildPlatform = Schema.Literals(["mac", "linux", "win"]);
Expand Down Expand Up @@ -1517,7 +1517,7 @@ export function resolvePackageManagerUserAgent(packageManager: string): string {

export function resolveDesktopProductName(version: string): string {
return resolveDesktopUpdateChannel(version) === "nightly"
? "T3 Code (Nightly)"
? "T3 Code (incognitojam Nightly)"
: (desktopPackageJson.productName ?? "T3 Code");
}

Expand Down
Loading