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 443492ada7e06fdce456f4cd74bc1f18966699f7..1631046a6ec460f5c82751c8ff42fd6f75eb5261 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 aebf11d5cae3cd0731f978cdaf6b1f1ef2e7db34..0b875721fd1ffde9284ffd39fe66721435ee9fb1 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, -- 2.54.0