support start on reboot (#132)

* move launcher to eastier lib
* support auto start after reboot
This commit is contained in:
Sijie.Sun
2024-06-04 23:06:10 +08:00
committed by GitHub
parent f9e6264f31
commit 6e77e6b5e7
15 changed files with 281 additions and 118 deletions

View File

@@ -20,3 +20,7 @@ export async function collectNetworkInfos() {
export async function getOsHostname() {
return await invoke<string>('get_os_hostname')
}
export async function setAutoLaunchStatus(enable: boolean) {
return await invoke<boolean>('set_auto_launch_status', { enable })
}