fix(updater): sync release notes across update sources

This commit is contained in:
t8y2 committed 2026-07-22 11:17:29 +08:00
1 parent 68e7169f1d
commit 1b399a58d0
11 files changed
+190 -17

No files matched your search

+5 -2
View File
@@ -2272,8 +2272,11 @@ export async function deleteHistoryEntry(id: string): Promise<void> {
// Updates
// ---------------------------------------------------------------------------
export async function checkForUpdates(locale?: string): Promise<UpdateInfo> {
const query = locale ? `?locale=${encodeURIComponent(locale)}` : "";
export async function checkForUpdates(locale?: string, source?: UpdateDownloadSource): Promise<UpdateInfo> {
const params = new URLSearchParams();
if (locale) params.set("locale", locale);
if (source) params.set("source", source);
const query = params.size > 0 ? `?${params.toString()}` : "";
return get(`/api/update/check${query}`);
}
+2 -2
View File
@@ -1463,8 +1463,8 @@ export async function installMcpServer(): Promise<string> {
return invoke("install_mcp_server");
}
export async function checkForUpdates(locale?: string): Promise<UpdateInfo> {
return invoke("check_for_updates", { locale });
export async function checkForUpdates(locale?: string, source?: UpdateDownloadSource): Promise<UpdateInfo> {
return invoke("check_for_updates", { locale, source });
}
export async function fetchChangelog(lang?: string): Promise<import("@/lib/app/changelog").ChangelogData> {