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,