mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 12:21:03 +00:00
14 lines
445 B
TypeScript
14 lines
445 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { DECKY_PLUGINS_LOCATION } from "@main/constants";
|
|
import fs from "node:fs";
|
|
import path from "node:path";
|
|
|
|
const checkHomebrewFolderExists = async (
|
|
_event: Electron.IpcMainInvokeEvent
|
|
): Promise<boolean> => {
|
|
const homebrewPath = path.dirname(DECKY_PLUGINS_LOCATION);
|
|
return fs.existsSync(homebrewPath);
|
|
};
|
|
|
|
registerEvent("checkHomebrewFolderExists", checkHomebrewFolderExists);
|