-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display app versions #45
Conversation
for update in updates { | ||
print("\(update.itemIdentifier) \(update.title) (\(update.bundleVersion))") | ||
if let installed = softwareMap.productForBundleIdentifier(update.bundleID) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. This has made me realise a better way to do the multi-upgrade "is installed" checks
if let installed = softwareMap.productForBundleIdentifier(update.bundleID) { | ||
print("\(update.itemIdentifier) \(update.title) (\(installed.bundleVersion) -> \(update.bundleVersion))") | ||
} else { | ||
print("\(update.itemIdentifier) \(update.title) (\(update.bundleVersion))") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see some kind of indicator that this update is pending even though the app store can't find the currently installed version (seems like it shouldn't happen)
Perhaps:
print("\(update.itemIdentifier) \(update.title) (unknown -> \(update.bundleVersion))")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this situation is unlikely to happen, but let's make it "unknown" just in case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, it's done
Re: #43