build(electron): added much more robust dependency checking to electron app

This commit is contained in:
2025-08-11 06:46:03 -04:00
parent 63bc3a198d
commit 6c53e9ca6c
11 changed files with 1616 additions and 77 deletions

View File

@@ -70,6 +70,19 @@ async function buildBackend() {
execSync(`chmod +x "${backendExecutable}"`);
console.log('✅ Backend executable permissions set');
}
// Validate backend dependencies
console.log('🔍 Validating backend dependencies...');
const { DependencyValidator } = require('./validate-dependencies.js');
const validator = new DependencyValidator();
// Test backend execution to ensure all dependencies are embedded
const testResult = await validator.validatePythonBackend();
if (!testResult) {
throw new Error('Backend dependency validation failed. Check that all Python dependencies are properly bundled.');
}
console.log('✅ Backend dependency validation passed');
} else {
throw new Error(`Backend executable not found at: ${backendExecutable}`);
}