mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-17 07:37:24 -05:00
automate fresh repo cloning, resolve asset caching, and auto-update Vyla SDK at startup
This commit is contained in:
12
main.js
12
main.js
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user