cui-server
Version:
Web UI Agent Platform based on Claude Code
29 lines (23 loc) • 751 B
JavaScript
import { chmodSync } from 'fs';
import { join } from 'path';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// List of files that need executable permissions
const executableFiles = [
'dist/mcp-server/index.js',
// Add more files here as needed
];
console.log('Setting executable permissions...');
executableFiles.forEach(file => {
const filePath = join(__dirname, '..', file);
try {
chmodSync(filePath, '755');
console.log(`✓ Made ${file} executable`);
} catch (error) {
console.error(`✗ Failed to make ${file} executable:`, error.message);
}
});
console.log('Postinstall complete.');