| author | |
| committer | |
| log | 85c174a6cac04b4fda68f311a904af0435c85807 |
| tree | 05291f61ed64ee2325bf54bed9ec62f53e3c46f9 |
| parent | 581d242925f80079b8add8433e0b1614bd362d88 |
| signature | Signed by PGP key B5690EEEBB952194 |
2 files changed, 4 insertions(+), 0 deletions(-)
apps/desktop/src/main.ts+1| ... | @@ -619,6 +619,7 @@ function configureApplicationMenu(): void { | ... | @@ -619,6 +619,7 @@ function configureApplicationMenu(): void { |
| 619 | function resolveResourcePath(fileName: string): string | null { | 619 | function resolveResourcePath(fileName: string): string | null { |
| 620 | const candidates = [ | 620 | const candidates = [ |
| 621 | Path.join(__dirname, "../resources", fileName), | 621 | Path.join(__dirname, "../resources", fileName), |
| 622 | Path.join(__dirname, "../prod-resources", fileName), | ||
| 622 | Path.join(process.resourcesPath, "resources", fileName), | 623 | Path.join(process.resourcesPath, "resources", fileName), |
| 623 | Path.join(process.resourcesPath, fileName), | 624 | Path.join(process.resourcesPath, fileName), |
| 624 | ]; | 625 | ]; |
scripts/build-desktop-artifact.ts+3| ... | @@ -614,6 +614,9 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( | ... | @@ -614,6 +614,9 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( |
| 614 | 614 | ||
| 615 | yield* assertPlatformBuildResources(options.platform, stageResourcesDir, options.verbose); | 615 | yield* assertPlatformBuildResources(options.platform, stageResourcesDir, options.verbose); |
| 616 | 616 | ||
| 617 | // electron-builder is filtering out stageResourcesDir directory in the AppImage for production | ||
| 618 | yield* fs.copy(stageResourcesDir, path.join(stageAppDir, "apps/desktop/prod-resources")); | ||
| 619 | |||
| 617 | const stagePackageJson: StagePackageJson = { | 620 | const stagePackageJson: StagePackageJson = { |
| 618 | name: "t3-code-desktop", | 621 | name: "t3-code-desktop", |
| 619 | version: appVersion, | 622 | version: appVersion, |