Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix: Linux icon now shows up (#807)

Alex Schwartz85c174a6cac0
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index 443492ada..1631046a6 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -619,6 +619,7 @@ function configureApplicationMenu(): void {
function resolveResourcePath(fileName: string): string | null {
const candidates = [
Path.join(__dirname, "../resources", fileName),
+ Path.join(__dirname, "../prod-resources", fileName),
Path.join(process.resourcesPath, "resources", fileName),
Path.join(process.resourcesPath, fileName),
];
diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts
index aebf11d5c..0b875721f 100644
--- a/scripts/build-desktop-artifact.ts
+++ b/scripts/build-desktop-artifact.ts
@@ -614,6 +614,9 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
yield* assertPlatformBuildResources(options.platform, stageResourcesDir, options.verbose);
+ // electron-builder is filtering out stageResourcesDir directory in the AppImage for production
+ yield* fs.copy(stageResourcesDir, path.join(stageAppDir, "apps/desktop/prod-resources"));
+
const stagePackageJson: StagePackageJson = {
name: "t3-code-desktop",
version: appVersion,