feat: Modify startup logic and install services by default

This commit is contained in:
huzibaca
2024-10-10 00:34:36 +08:00
parent 35f5e4ca41
commit 9b2b447b8b
12 changed files with 126 additions and 436 deletions

View File

@@ -200,15 +200,6 @@ export async function checkService() {
return "uninstall";
}
}
export async function installService(passwd: string) {
return invoke<void>("install_service", { passwd });
}
export async function uninstallService(passwd: string) {
return invoke<void>("uninstall_service", { passwd });
}
export async function invoke_uwp_tool() {
return invoke<void>("invoke_uwp_tool").catch((err) =>
Notice.error(err?.message || err.toString(), 1500)