automate fresh repo cloning, resolve asset caching, and auto-update Vyla SDK at startup

This commit is contained in:
2026-08-26 20:03:08 -07:00
parent 08c70a2c6d
commit dfb0893316
7 changed files with 68 additions and 37 deletions

12
main.js
View File

@@ -243,6 +243,18 @@ async function start() {
sendToTauri('status', { message: 'Loading credentials...' });
serviceManager.credentialManager.loadCredentials();
sendToTauri('status', { message: 'Installing the Vyla SDK to latest version...' });
try {
require('child_process').execSync('npm install @vyla-entertainment/sdk@latest --no-save --no-audit --no-fund', {
cwd: APPDATA_DIR,
stdio: 'ignore',
windowsHide: true
});
debugLog("Vyla SDK updated to latest successfully.");
} catch (e) {
debugLog(`Failed to install Vyla SDK: ${e.message}`);
}
sendToTauri('status', { message: 'Starting backend services...' });
await serviceManager.startServices([
{ name: 'auth-proxy', relativeDir: 'auth-proxy' },