2025-03-20 01:46:54 +08:00
|
|
|
import { appConfigDir } from "@tauri-apps/api/path"
|
|
|
|
|
import { setStoreCollectionPath } from "@tauri-store/valtio"
|
|
|
|
|
import { appStore } from "./app"
|
|
|
|
|
import { steamStore } from "./steam"
|
|
|
|
|
import { toolStore } from "./tool"
|
|
|
|
|
import path from "path"
|
2025-03-13 00:25:09 +08:00
|
|
|
|
2025-03-20 01:46:54 +08:00
|
|
|
export async function init() {
|
|
|
|
|
await appStore.start()
|
|
|
|
|
await toolStore.start()
|
|
|
|
|
await steamStore.start()
|
|
|
|
|
const appConfigDirPath = await appConfigDir()
|
|
|
|
|
await setStoreCollectionPath(path.resolve(appConfigDirPath, "cstb"))
|
2025-03-12 22:20:06 +08:00
|
|
|
}
|