Files
infoscreen3/test-exe.js
T
Petri Järvisalo 798c85e70f prepare 1.7.1: Refactor build process to use nexe and update dependencies
- Updated package.json to replace pkg with nexe for building executables.
- Added rebuild-native-node20.js for rebuilding native modules for Node.js 20.18.1.
- Introduced test-exe.js to facilitate testing of the generated executable.
- Modified webpack.config.cjs to output bundle.cjs and set libraryTarget to commonjs2.
- Enhanced profiler plugin for memory usage tracking with simplified output.
- Removed unused dependencies and updated existing ones in package.json.
2025-12-05 13:42:12 +02:00

24 lines
590 B
JavaScript

const { spawn } = require('child_process');
const path = require('path');
console.log('Starting infoscreen3...');
console.log('CWD:', process.cwd());
console.log('Executable path:', path.resolve('./infoscreen3.exe'));
const child = spawn('./infoscreen3.exe', [], {
stdio: 'inherit',
shell: true
});
child.on('error', (error) => {
console.error('Failed to start:', error);
});
child.on('exit', (code, signal) => {
console.log(`Process exited with code ${code} and signal ${signal}`);
});
process.on('SIGINT', () => {
child.kill('SIGINT');
});