fix(desktop): keep Linux AppImage filename stable across updates #9946
ClosedImBIOS(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/9946/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- @@ -2668,3 +2680,6 @@26682680 if (platform === "linux") {26692681 buildConfig.linux = {26702682 target: [target],2683+ // Stable filename without the version: AppImages update in place and a2684+ // versioned name orphans dock pins and .desktop entries every release.2685+ artifactName: resolveLinuxArtifactName(version),
- @@ -2562,3 +2562,14 @@25622562 : (desktopPackageJson.productName ?? "T3 Code");25632563 }256425642565+// Linux AppImages auto-update in place, so the artifact filename must not2566+// contain the version: electron-updater keeps the existing file when the2567+// published name carries no version, and a stable path keeps dock pins,2568+// .desktop entries, shortcuts, and file associations working across updates2569+// (electron-userland/electron-builder#5810). Nightly and stable need distinct2570+// names because both can live side by side in ~/Applications.2571+export function resolveLinuxArtifactName(version: string): string {2572+ return resolveDesktopUpdateChannel(version) === "nightly"2573+ ? "T3-Code-Nightly-${arch}.${ext}"2574+ : "T3-Code-${arch}.${ext}";2575+}
juliusmarminge closed this
Sign in to join this conversation.


macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed