feat: add updater

This commit is contained in:
kwaroran
2024-06-14 23:40:28 +09:00
parent b56b8eebec
commit 688be14e11
3 changed files with 21 additions and 40 deletions

View File

@@ -7,7 +7,7 @@ import { get } from "svelte/store";
import {open} from '@tauri-apps/api/shell'
import { DataBase, loadedStore, setDatabase, type Database, defaultSdDataFunc } from "./database";
import { appWindow } from "@tauri-apps/api/window";
import { checkUpdate } from "../update";
import { checkRisuUpdate } from "../update";
import { botMakerMode, selectedCharID } from "../stores";
import { Body, ResponseType, fetch as TauriFetch } from "@tauri-apps/api/http";
import { loadPlugins } from "../plugins/plugins";
@@ -419,7 +419,7 @@ export async function loadData() {
throw "Your save file is corrupted"
}
}
await checkUpdate()
await checkRisuUpdate()
await changeFullscreen()
}