mas-cli / mas

:package: Mac App Store command line interface
MIT License
10.84k stars 273 forks source link

`outdated`: multi-platform apps are not checked to see if they require a newer version of macOS than is currently running #540

Open rgoldberg opened 2 weeks ago

rgoldberg commented 2 weeks ago

Your Environment

mas Install Method

brew install mas (homebrew-core)

Describe the Bug

mas outdated does not check multi-platform apps to see if they require a newer version of macOS than is currently running.

This occurs because multi-platform apps have kind = software. We only perform the macOS version check for kind = mac-software. That was probably done because data minimum OS data for kind = software was being returned for iOS, not macOS. Now that #505 has been merged into main, mas no longer accidentally gets iOS app info, so we can remove the requirement that kind = mac-software, which will fix this issue.

To Reproduce

Steps to reproduce the behavior:

  1. run macOS 12.x
  2. install Apple Developer app: mas install 640199958
  3. mas outdated outputs 640199958 Developer (10.4.1 -> 10.6.6), but 10.4.1 is the newest version supported by macOS 12.x

Expected Behavior

mas outdated does not output 640199958 Developer (10.4.1 -> 10.6.6)

Actual Behavior

mas outdated outputs 640199958 Developer (10.4.1 -> 10.6.6), but 10.4.1 is the newest version supported by macOS 12.x

Additional Context