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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user