diff options
| author | yum <yum.food.vr@gmail.com> | 2025-07-23 19:51:35 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-07-23 19:51:35 -0700 |
| commit | e1730a63538d2b1a23c948d25580612303733eba (patch) | |
| tree | 229caf417070ee7894422fc13da7d69de8a17af4 /ui/build_scripts | |
| parent | 9bf33a4cad8196bfe7253c841ab5c35ffdbc0173 (diff) | |
Update avg_logprob cutoff, fix sounds, fix electron build
Diffstat (limited to 'ui/build_scripts')
| -rw-r--r-- | ui/build_scripts/setup-empty-venv.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/build_scripts/setup-empty-venv.js b/ui/build_scripts/setup-empty-venv.js new file mode 100644 index 0000000..0691a51 --- /dev/null +++ b/ui/build_scripts/setup-empty-venv.js @@ -0,0 +1,25 @@ +const { execSync } = require('child_process'); +const path = require('path'); +const fs = require('fs'); + +const projectRoot = path.join(__dirname, '..', '..'); +const venvPath = path.join(projectRoot, 'venv_clean'); +const dllPath = path.join(projectRoot, 'dll_empty'); + +console.log('Creating empty virtual environment and dll directory...'); + +// Create empty dll directory +if (!fs.existsSync(dllPath)) { + fs.mkdirSync(dllPath, { recursive: true }); + console.log('Created empty dll directory'); +} + +try { + console.log('Creating new venv...'); + execSync(`python -m venv "${venvPath}"`, { stdio: 'inherit' }); + console.log('Empty venv created successfully!'); +} catch (error) { + console.error('Failed to create venv:', error); + process.exit(1); +} + |
