Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: store changelog information during update installation

Tonhob2274079228f
diff --git a/src/lib/updater.ts b/src/lib/updater.ts
index 4d5c3927..05b814fc 100644
--- a/src/lib/updater.ts
+++ b/src/lib/updater.ts
@@ -1,5 +1,6 @@
import { check } from "@tauri-apps/plugin-updater";
import { relaunch } from "@tauri-apps/plugin-process";
+import { storeChangelogForUpdate } from "$lib/stores/changelog-store.svelte";
export interface UpdateInfo {
available: boolean;
@@ -26,6 +27,9 @@ export async function checkForUpdate(): Promise<UpdateInfo> {
export async function installUpdate(): Promise<void> {
const update = await check();
if (update) {
+ if (update.body && update.version) {
+ storeChangelogForUpdate(update.body, update.version);
+ }
await update.downloadAndInstall();
await relaunch();
}