mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
16 lines
429 B
TypeScript
16 lines
429 B
TypeScript
import { app } from "electron";
|
|
import path from "node:path";
|
|
|
|
export const defaultDownloadsPath = app.getPath("downloads");
|
|
|
|
export const databasePath = path.join(
|
|
app.getPath("appData"),
|
|
"hydra",
|
|
"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");
|