mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
- Replace user agent detection with capability-based detection - Support any touch device (iPad, Android, Surface, etc.) - Add smart detection for hybrid devices (touch + trackpad) - Add user preference support (auto/always/never) - Add keyboard mode toggle button in mobile controls - Fix landscape mode detection on all touch devices - Use hardware capabilities instead of brittle UA strings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
No EOL
966 B
JavaScript
Executable file
15 lines
No EOL
966 B
JavaScript
Executable file
/**
|
|
* Preinstall script to check for Windows environment and exit gracefully
|
|
* with an informative message if detected.
|
|
*/
|
|
|
|
// Check if running on Windows
|
|
if (process.platform === 'win32') {
|
|
console.error('\x1b[31m%s\x1b[0m', 'Error: Claude Code is not supported on Windows.');
|
|
console.error('\x1b[33m%s\x1b[0m', 'Claude Code requires macOS or Linux to run properly.');
|
|
console.error('\x1b[33m%s\x1b[0m', 'If you are using WSL (Windows Subsystem for Linux):');
|
|
console.error('\x1b[33m%s\x1b[0m', ' 1. Make sure you are running npm install from within the WSL terminal, not from PowerShell or CMD');
|
|
console.error('\x1b[33m%s\x1b[0m', ' 2. If you\'re still seeing this message in WSL, your environment may be incorrectly reporting as Windows');
|
|
console.error('\x1b[33m%s\x1b[0m', 'Please visit https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#check-system-requirements for troubleshooting information.');
|
|
process.exit(1);
|
|
} |