feat: Installation of Unity Hub

This commit is contained in:
2026-06-28 17:55:09 +07:00
parent 434d77f0b8
commit 07ce777bb9
5 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ const handlers = {
"unity:status": () => guard(() => unity.unityStatus()),
"unity:install": (url) =>
guard(async () => {
if (!url.startsWith("unityhub://")) throw new Error("Invalid Unity Hub link");
if (!url.startsWith("unityhub://") && !url.startsWith("https://unity.com/"))
throw new Error("Invalid Unity Hub link");
await shell.openExternal(url);
}),