This commit is contained in:
GitFrog1111
2026-04-14 17:34:18 +07:00
parent 0156720ea8
commit 41bc53e194
6 changed files with 113 additions and 46 deletions
+2 -25
View File
@@ -1,26 +1,3 @@
#!/usr/bin/env node
const path = require('path');
const { spawn } = require('child_process');
let electronBinary;
try {
electronBinary = require('electron');
} catch (e) {
console.error('Could not load Electron. Try: npm install -g badclaude');
process.exit(1);
}
const appPath = path.resolve(__dirname, '..');
const child = spawn(electronBinary, [appPath], {
detached: true,
stdio: 'ignore',
windowsHide: true,
});
child.on('error', (err) => {
console.error('Failed to start badclaude:', err.message);
process.exit(1);
});
child.unref();
console.warn('[DEPRECATED] "badclaude" has been renamed to "openwhip".');
require('./openwhip');
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env node
const path = require('path');
const { spawn } = require('child_process');
const invokedAs = path.basename(process.argv[1] || '');
if (invokedAs === 'badclaude' || invokedAs === 'badclaude.cmd') {
console.warn('[DEPRECATED] "badclaude" has been renamed to "openwhip".');
console.warn('Please run: npm install -g openwhip');
}
let electronBinary;
try {
electronBinary = require('electron');
} catch (e) {
console.error('Could not load Electron. Try: npm install -g openwhip');
process.exit(1);
}
const appPath = path.resolve(__dirname, '..');
const child = spawn(electronBinary, [appPath], {
detached: true,
stdio: 'ignore',
windowsHide: true,
});
child.on('error', (err) => {
console.error('Failed to start openwhip:', err.message);
process.exit(1);
});
child.unref();