From 85c174a6cac04b4fda68f311a904af0435c85807 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Thu, 12 Mar 2026 15:09:41 -0400 Subject: [PATCH] fix: Linux icon now shows up (#807) --- apps/desktop/src/main.ts | 1 + scripts/build-desktop-artifact.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 443492ada7..1631046a6e 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 aebf11d5ca..0b875721fd 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,