Add cx_setup.py for building the ReticulumMeshChatX application

- Introduced a new setup script using cx_Freeze to facilitate building the application.
- Updated version.py to maintain consistency in version string formatting.
- Modified build-backend.js to use poetry for executing the build process.
This commit is contained in:
2025-11-30 23:25:54 -06:00
parent 84f887df90
commit 0beaaaf4b1
3 changed files with 52 additions and 11 deletions

View File

@@ -1,16 +1,8 @@
#!/usr/bin/env node
const { execSync } = require('child_process');
const path = require('path');
const os = require('os');
const platform = os.platform();
const venvPython = platform === 'win32'
? path.join('venv', 'Scripts', 'python.exe')
: path.join('venv', 'bin', 'python');
try {
execSync(`${venvPython} setup.py build`, { stdio: 'inherit' });
execSync(`poetry run python cx_setup.py build`, { stdio: 'inherit' });
} catch (error) {
console.error('Build failed:', error.message);
process.exit(1);