mirror of
https://github.com/YuzuZensai/VRC-Circle.git
synced 2026-09-13 19:08:52 +00:00
✨ feat: Installation of Unity Hub
This commit is contained in:
@@ -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);
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user