Skip to content

Commit 77fe51f

Browse files
committed
chore: rebrand fork as Pearce Codes
1 parent 1c6bdc8 commit 77fe51f

23 files changed

Lines changed: 78 additions & 72 deletions

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
echo "release_channel=stable" >> "$GITHUB_OUTPUT"
145145
echo "version=$version" >> "$GITHUB_OUTPUT"
146146
echo "tag=v$version" >> "$GITHUB_OUTPUT"
147-
echo "name=T3 Code v$version" >> "$GITHUB_OUTPUT"
147+
echo "name=Pearce Codes v$version" >> "$GITHUB_OUTPUT"
148148
echo "cli_dist_tag=latest" >> "$GITHUB_OUTPUT"
149149
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
150150
echo "is_prerelease=false" >> "$GITHUB_OUTPUT"

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
"typescript": "catalog:",
3333
"vitest": "catalog:"
3434
},
35-
"productName": "T3 Code (Alpha)"
35+
"productName": "Pearce Codes"
3636
}

apps/desktop/scripts/electron-launcher.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file mostly exists because we want dev mode to say "T3 Code (Dev)" instead of "electron"
1+
// This file mostly exists because we want dev mode to say "Pearce Codes (Dev)" instead of "electron"
22

33
import { spawnSync } from "node:child_process";
44
import {
@@ -17,8 +17,10 @@ import { dirname, join, resolve } from "node:path";
1717
import { fileURLToPath } from "node:url";
1818

1919
const isDevelopment = Boolean(process.env.VITE_DEV_SERVER_URL);
20-
const APP_DISPLAY_NAME = isDevelopment ? "T3 Code (Dev)" : "T3 Code (Alpha)";
21-
const APP_BUNDLE_ID = isDevelopment ? "com.pearcecodes.t3code.dev" : "com.pearcecodes.t3code";
20+
const APP_DISPLAY_NAME = isDevelopment ? "Pearce Codes (Dev)" : "Pearce Codes (Alpha)";
21+
const APP_BUNDLE_ID = isDevelopment
22+
? "com.pearcecodes.pearcecodes.dev"
23+
: "com.pearcecodes.pearcecodes";
2224
const LAUNCHER_VERSION = 2;
2325

2426
const __dirname = dirname(fileURLToPath(import.meta.url));

apps/desktop/src/app/DesktopApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const handleFatalStartupError = Effect.fn("desktop.startup.handleFatalStartupErr
118118
const wasQuitting = yield* Ref.getAndSet(state.quitting, true);
119119
if (!wasQuitting) {
120120
yield* electronDialog.showErrorBox(
121-
"T3 Code failed to start",
121+
"Pearce Codes failed to start",
122122
`Stage: ${stage}\n${message}${detail}`,
123123
);
124124
}

apps/desktop/src/app/DesktopAppIdentity.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ const withIdentity = <A, E, R>(
118118
Layer.provideMerge(
119119
FileSystem.layerNoop({
120120
exists: (path) =>
121-
Effect.succeed(input.legacyPathExists === true && path.includes("T3 Code (Alpha)")),
121+
Effect.succeed(
122+
input.legacyPathExists === true && path.includes("Pearce Codes (Alpha)"),
123+
),
122124
readFileString: () =>
123125
Effect.succeed(input.packageJson ?? '{"t3codeCommitHash":"abcdef1234567890"}'),
124126
}),
@@ -138,7 +140,7 @@ describe("DesktopAppIdentity", () => {
138140
const identity = yield* DesktopAppIdentity.DesktopAppIdentity;
139141
const userDataPath = yield* identity.resolveUserDataPath;
140142

141-
assert.equal(userDataPath, "/Users/alice/Library/Application Support/T3 Code (Alpha)");
143+
assert.equal(userDataPath, "/Users/alice/Library/Application Support/Pearce Codes (Alpha)");
142144
}),
143145
{ legacyPathExists: true },
144146
),
@@ -156,8 +158,8 @@ describe("DesktopAppIdentity", () => {
156158
const identity = yield* DesktopAppIdentity.DesktopAppIdentity;
157159
yield* identity.configure;
158160

159-
assert.deepEqual(calls.setName, ["T3 Code (Alpha)"]);
160-
assert.equal(calls.setAboutPanelOptions[0]?.applicationName, "T3 Code (Alpha)");
161+
assert.deepEqual(calls.setName, ["Pearce Codes (Alpha)"]);
162+
assert.equal(calls.setAboutPanelOptions[0]?.applicationName, "Pearce Codes (Alpha)");
161163
assert.equal(calls.setAboutPanelOptions[0]?.applicationVersion, "1.2.3");
162164
assert.equal(calls.setAboutPanelOptions[0]?.version, "0123456789ab");
163165
assert.deepEqual(calls.setDockIcon, ["/icon.png"]);

apps/desktop/src/app/DesktopEnvironment.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ describe("DesktopEnvironment", () => {
6565
assert.equal(environment.appRoot, "/repo");
6666
assert.equal(environment.backendEntryPath, "/repo/apps/server/dist/bin.mjs");
6767
assert.equal(environment.backendCwd, "/repo");
68-
assert.equal(environment.appUserModelId, "com.pearcecodes.t3code.dev");
69-
assert.equal(environment.linuxWmClass, "t3code-dev");
68+
assert.equal(environment.appUserModelId, "com.pearcecodes.pearcecodes.dev");
69+
assert.equal(environment.linuxWmClass, "pearce-codes-dev");
7070
assert.deepEqual(
7171
Option.map(environment.devServerUrl, (url) => url.href),
7272
Option.some("http://localhost:5173/"),

apps/desktop/src/app/DesktopEnvironment.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class DesktopEnvironment extends Context.Service<
8080
DesktopEnvironmentShape
8181
>()("t3/desktop/Environment") {}
8282

83-
const APP_BASE_NAME = "T3 Code";
83+
const APP_BASE_NAME = "Pearce Codes";
8484

8585
function resolveDesktopAppStageLabel(input: {
8686
readonly isDevelopment: boolean;
@@ -160,8 +160,8 @@ const makeDesktopEnvironment = Effect.fn("desktop.environment.make")(function* (
160160
});
161161
const displayName = branding.displayName;
162162
const stateDir = path.join(baseDir, isDevelopment ? "dev" : "userdata");
163-
const userDataDirName = isDevelopment ? "t3code-dev" : "t3code";
164-
const legacyUserDataDirName = isDevelopment ? "T3 Code (Dev)" : "T3 Code (Alpha)";
163+
const userDataDirName = isDevelopment ? "pearce-codes-dev" : "pearce-codes";
164+
const legacyUserDataDirName = isDevelopment ? "Pearce Codes (Dev)" : "Pearce Codes (Alpha)";
165165
const resourcesPath = input.resourcesPath;
166166

167167
return DesktopEnvironment.of({
@@ -199,9 +199,11 @@ const makeDesktopEnvironment = Effect.fn("desktop.environment.make")(function* (
199199
otlpExportIntervalMs: config.otlpExportIntervalMs,
200200
branding,
201201
displayName,
202-
appUserModelId: isDevelopment ? "com.pearcecodes.t3code.dev" : "com.pearcecodes.t3code",
203-
linuxDesktopEntryName: isDevelopment ? "t3code-dev.desktop" : "t3code.desktop",
204-
linuxWmClass: isDevelopment ? "t3code-dev" : "t3code",
202+
appUserModelId: isDevelopment
203+
? "com.pearcecodes.pearcecodes.dev"
204+
: "com.pearcecodes.pearcecodes",
205+
linuxDesktopEntryName: isDevelopment ? "pearce-codes-dev.desktop" : "pearce-codes.desktop",
206+
linuxWmClass: isDevelopment ? "pearce-codes-dev" : "pearce-codes",
205207
userDataDirName,
206208
legacyUserDataDirName,
207209
defaultDesktopSettings: resolveDefaultDesktopSettings(input.appVersion),

apps/desktop/src/ssh/DesktopSshPasswordPrompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as IpcChannels from "../ipc/channels.ts";
1616
import * as ElectronWindow from "../electron/ElectronWindow.ts";
1717

1818
const DEFAULT_SSH_PASSWORD_PROMPT_TIMEOUT_MS = 3 * 60 * 1000;
19-
const WINDOW_UNAVAILABLE_MESSAGE = "T3 Code window is not available for SSH authentication.";
19+
const WINDOW_UNAVAILABLE_MESSAGE = "Pearce Codes window is not available for SSH authentication.";
2020

2121
type DesktopSshPasswordPromptResolutionInput =
2222
typeof DesktopSshPasswordPromptResolutionInputSchema.Type;

apps/desktop/src/window/DesktopApplicationMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const checkForUpdatesFromMenu: Effect.Effect<
5353
yield* electronDialog.showMessageBox({
5454
type: "info",
5555
title: "You're up to date!",
56-
message: `T3 Code ${updateState.currentVersion} is currently the newest version available.`,
56+
message: `Pearce Codes ${updateState.currentVersion} is currently the newest version available.`,
5757
buttons: ["OK"],
5858
});
5959
} else if (updateState.status === "error") {

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"directory": "apps/server"
99
},
1010
"bin": {
11-
"t3code": "./dist/bin.mjs"
11+
"pearcecodes-t3-cli": "./dist/bin.mjs"
1212
},
1313
"files": [
1414
"dist"

0 commit comments

Comments
 (0)