From c3fc8a4987ec55a0ab20722b64be1c99147ee739 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Tue, 10 Mar 2026 10:56:47 -0400 Subject: [PATCH 1/2] fix: Linux icon now shows up --- apps/desktop/src/main.ts | 1 + scripts/build-desktop-artifact.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 4fec75804..856b00f35 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -582,6 +582,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..add0d1c76 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -614,6 +614,8 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( yield* assertPlatformBuildResources(options.platform, stageResourcesDir, options.verbose); + yield* fs.copy(stageResourcesDir, path.join(stageAppDir, "apps/desktop/prod-resources")); + const stagePackageJson: StagePackageJson = { name: "t3-code-desktop", version: appVersion, From a458c3ee924064f5d79ba74da879453bc5328be2 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Thu, 12 Mar 2026 06:04:52 -0400 Subject: [PATCH 2/2] add comment --- scripts/build-desktop-artifact.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index add0d1c76..0b875721f 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -614,6 +614,7 @@ 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 = {