mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
27 lines
763 B
TypeScript
27 lines
763 B
TypeScript
import { appVersion, defaultDownloadsPath, isStaging } from "@main/constants";
|
|
import { ipcMain } from "electron";
|
|
|
|
import "./auth";
|
|
import "./autoupdater";
|
|
import "./catalogue";
|
|
import "./cloud-save";
|
|
import "./download-sources";
|
|
import "./hardware";
|
|
import "./library";
|
|
import "./leveldb";
|
|
import "./misc";
|
|
import "./notifications";
|
|
import "./profile";
|
|
import "./themes";
|
|
import "./torrenting";
|
|
import "./user";
|
|
import "./user-preferences";
|
|
|
|
import { isPortableVersion } from "@main/helpers";
|
|
|
|
ipcMain.handle("ping", () => "pong");
|
|
ipcMain.handle("getVersion", () => appVersion);
|
|
ipcMain.handle("isStaging", () => isStaging);
|
|
ipcMain.handle("isPortableVersion", () => isPortableVersion());
|
|
ipcMain.handle("getDefaultDownloadsPath", () => defaultDownloadsPath);
|