chuckfairy / node-webcam

Nodejs Cross Platform Webcam usage
MIT License
193 stars 51 forks source link

Platform Detection Error: CommandCam.exe Download Attempted on macOS #72

Open yordan-kanchelov opened 1 month ago

yordan-kanchelov commented 1 month ago

The current implementation in the postinstall.js script attempts to download CommandCam.exe, which is a Windows-specific executable, even when running on macOS. This results in an error since the executable cannot be used on macOS.

Steps to Reproduce:

  1. Clone the repository on a macOS machine.
  2. Run the installation process (npm install or pnpm install).
  3. Observe that the script attempts to download CommandCam.exe despite being on macOS.

Expected Behavior: The script should detect that it’s running on macOS and skip the download process for the Windows-specific executable.

Actual Behavior: The script attempts to download CommandCam.exe, which leads to errors.

Environment: • OS: macOS

image