Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Add cross-platform LocalTarget with macOS and Linux support#729

Open
denini08 wants to merge 3 commits intoARM-software:masterfrom
denini08:master
Open

Add cross-platform LocalTarget with macOS and Linux support#729
denini08 wants to merge 3 commits intoARM-software:masterfrom
denini08:master

Conversation

@denini08
Copy link

@denini08 denini08 commented Aug 15, 2025

This PR introduces the new LocalTarget class, which unifies local target handling across macOS and Linux. Fix #728.

Key changes include:

  • Automatic platform detection (mac, linux)
  • Native command usage on macOS (e.g., sysctl, screencapture) and Linux (e.g., /proc/cpuinfo, scrot)
  • Fallback to busybox commands for unsupported platforms
  • Updated tests and configuration to use LocalTarget instead of platform-specific classes
  • Maintained backward compatibility (LocalMacTarget remains as alias)

Benefits:

  • Single class works on both macOS and Linux without manual selection
  • Platform-specific logic centralized for easier maintenance
  • Simplifies test configuration and improves code clarity

Let me know your thoughts. Happy to help.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when running on macOS: /proc/cpuinfo not found

3 participants