| ... | @@ -503,10 +503,15 @@ export function resolveMockUpdateServerUrl(mockUpdateServerPort: number | undefi | ... | @@ -503,10 +503,15 @@ export function resolveMockUpdateServerUrl(mockUpdateServerPort: number | undefi |
| 503 | return `http://localhost:${mockUpdateServerPort ?? 3000}`; | 503 | return `http://localhost:${mockUpdateServerPort ?? 3000}`; |
| 504 | } | 504 | } |
| 505 | | 505 | |
| | 506 | export function resolveDesktopProductName(version: string): string { |
| | 507 | return resolveDesktopUpdateChannel(version) === "nightly" |
| | 508 | ? "T3 Code (Nightly)" |
| | 509 | : (desktopPackageJson.productName ?? "T3 Code"); |
| | 510 | } |
| | 511 | |
| 506 | const createBuildConfig = Effect.fn("createBuildConfig")(function* ( | 512 | const createBuildConfig = Effect.fn("createBuildConfig")(function* ( |
| 507 | platform: typeof BuildPlatform.Type, | 513 | platform: typeof BuildPlatform.Type, |
| 508 | target: string, | 514 | target: string, |
| 509 | productName: string, | | |
| 510 | version: string, | 515 | version: string, |
| 511 | signed: boolean, | 516 | signed: boolean, |
| 512 | mockUpdates: boolean, | 517 | mockUpdates: boolean, |
| ... | @@ -514,7 +519,7 @@ const createBuildConfig = Effect.fn("createBuildConfig")(function* ( | ... | @@ -514,7 +519,7 @@ const createBuildConfig = Effect.fn("createBuildConfig")(function* ( |
| 514 | ) { | 519 | ) { |
| 515 | const buildConfig: Record<string, unknown> = { | 520 | const buildConfig: Record<string, unknown> = { |
| 516 | appId: "com.t3tools.t3code", | 521 | appId: "com.t3tools.t3code", |
| 517 | productName, | 522 | productName: resolveDesktopProductName(version), |
| 518 | artifactName: "T3-Code-${version}-${arch}.${ext}", | 523 | artifactName: "T3-Code-${version}-${arch}.${ext}", |
| 519 | directories: { | 524 | directories: { |
| 520 | buildResources: "apps/desktop/resources", | 525 | buildResources: "apps/desktop/resources", |
| ... | @@ -732,7 +737,6 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( | ... | @@ -732,7 +737,6 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( |
| 732 | build: yield* createBuildConfig( | 737 | build: yield* createBuildConfig( |
| 733 | options.platform, | 738 | options.platform, |
| 734 | options.target, | 739 | options.target, |
| 735 | desktopPackageJson.productName ?? "T3 Code", | | |
| 736 | appVersion, | 740 | appVersion, |
| 737 | options.signed, | 741 | options.signed, |
| 738 | options.mockUpdates, | 742 | options.mockUpdates, |