hartmantis/mac-app-store-chef

Find a faster way to verify app installed? status...

Closed this issue · 2 comments

Originally we shelled out to pkgutil, but couldn't find a way to cross-reference app names in the App Store with bundle IDs in pkgutil.

Requiring the user to provide bundle IDs in their attribute hash was 😐.

Checking installed status by opening the app store and navigating to the app page is 🕥.

There's no bundle ID in the App Store's app info page.

App names can differ between the App Store and local install (e.g. Tweetbot's App Store name is "Tweetbot for Twitter" but it gets installed into /Applications/Tweetbot.app and it's bundle ID is com.tapbots.TweetbotMac).

There are at least tens of thousands of App Store apps. Maintaining a name => bundle ID index of some common ones would be 😡.

What if we support an optional bundle ID? If one is provided, shell out to pkgutil. If not, then fall back to using the app store.

Then provide a set of recipes (or resources?) for some common apps that include their bundle IDs.

Done!