mirror of
https://github.com/UiO-Gaming/infoscreen3.git
synced 2026-11-05 13:56:52 +01:00
- 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.
24 lines
590 B
JavaScript
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');
|
|
});
|