mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-20 09:43:57 +00:00
20 lines
530 B
TypeScript
20 lines
530 B
TypeScript
import path from "node:path";
|
|
import steamGamesWorkerPath from "./steam-games.worker?modulePath";
|
|
import downloadSourceWorkerPath from "./download-source.worker?modulePath";
|
|
|
|
import Piscina from "piscina";
|
|
|
|
import { seedsPath } from "@main/constants";
|
|
|
|
export const steamGamesWorker = new Piscina({
|
|
filename: steamGamesWorkerPath,
|
|
workerData: {
|
|
steamGamesPath: path.join(seedsPath, "steam-games.json"),
|
|
},
|
|
maxThreads: 1,
|
|
});
|
|
|
|
export const downloadSourceWorker = new Piscina({
|
|
filename: downloadSourceWorkerPath,
|
|
});
|