mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
# Conflicts: # src/main/services/window-manager.ts # src/renderer/src/context/game-details/game-details.context.tsx # src/renderer/src/declaration.d.ts # src/types/index.ts # yarn.lock
22 lines
692 B
TypeScript
22 lines
692 B
TypeScript
import { app } from "electron";
|
|
import path from "node:path";
|
|
|
|
export const defaultDownloadsPath = app.getPath("downloads");
|
|
|
|
export const databaseDirectory = path.join(app.getPath("appData"), "hydra");
|
|
export const databasePath = path.join(
|
|
databaseDirectory,
|
|
import.meta.env.MAIN_VITE_API_URL.includes("staging")
|
|
? "hydra_test.db"
|
|
: "hydra.db"
|
|
);
|
|
|
|
export const logsPath = path.join(app.getPath("appData"), "hydra", "logs");
|
|
|
|
export const seedsPath = app.isPackaged
|
|
? path.join(process.resourcesPath, "seeds")
|
|
: path.join(__dirname, "..", "..", "seeds");
|
|
|
|
export const backupsPath = path.join(app.getPath("userData"), "Backups");
|
|
|
|
export const appVersion = app.getVersion();
|