feat: implement core IPC handlers and service management for Nginx, Apache, and project configuration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const fs = require('fs');
|
||||
const { execSync } = require('child_process');
|
||||
|
||||
try {
|
||||
console.log('Converting icon using npx png-to-ico...');
|
||||
const buffer = execSync('npx -y png-to-ico logo/icon.png');
|
||||
fs.writeFileSync('build/icon.ico', buffer);
|
||||
console.log('Successfully created build/icon.ico (' + buffer.length + ' bytes)');
|
||||
} catch (err) {
|
||||
console.error('Conversion failed:', err.message);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user