feat: moved to npm package for the store

This commit is contained in:
Simeon Radivoev 2026-03-22 16:34:33 +02:00
parent 3750e9ed8f
commit 91ee719633
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
3 changed files with 29 additions and 63 deletions

View file

@ -75,11 +75,16 @@ export async function getStoreGameFromPath (path: string)
return game;
}
export function getStoreRootFolder ()
{
const downlodDir = config.get('downloadPath');
return path.join(downlodDir, "store");
}
export function getStoreFolder ()
{
if (process.env.CUSTOM_STORE_PATH) return process.env.CUSTOM_STORE_PATH;
const downlodDir = config.get('downloadPath');
return path.join(downlodDir, "store");
return path.join(getStoreRootFolder(), "node_modules", process.env.STORE_PACKAGE_NAME ?? "@simeonradivoev/gameflow-store");
}
export async function getStoreEmulatorPackage (id: string)