Skip to content
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

Add support to purchase apps #264

Merged
merged 12 commits into from
May 15, 2020

Conversation

blochberger
Copy link
Contributor

This patch allows to purchase apps. As mentioned in the updated documentation, it requires you to enter your Apple ID credentials in the App Store if you

  • purchase a non-free app, or
  • opted out of storing credentials for free apps, or
  • remembered credentials for 15 minutes and the timeout expired.

This should close #2 and #145. However, any purchase has to be made explicitly by invoking mas purchase <app_id>. The install and lucky commands still do not let you purchase applications.

Tested on Mojave 10.14.6 and Catalina 10.15.3.

0xbf00 and others added 8 commits January 8, 2020 15:27
The other commands start upper-cased.
The linter complained that the line with the URL parameters was too
long. I transformed the parameters into a dictionary. This has the
additional value of differences in parameters between installing and
purchasing can be spotted more easily.
@phatblat
Copy link
Member

Wow, this is awesome. People have been asking for this for years. I'll take a closer look soon.

@phatblat phatblat self-requested a review May 15, 2020 01:26
@phatblat phatblat added this to the 1.7 milestone May 15, 2020
@phatblat
Copy link
Member

Fixes #2
Fixes #145

@phatblat
Copy link
Member

Thanks for this great addition! This will go out in mas 1.7.0 soon. I have a little more work to do before we're ready for a release.

@phatblat phatblat merged commit 04686cf into mas-cli:master May 15, 2020
gabebw added a commit to gabebw/dotfiles that referenced this pull request May 16, 2020
Homebrew uses `mas install`, which will only (re-)install apps that have
already been purchased on the current App Store account. This means that
if you're setting up a brand-new Apple ID for work, none of these apps
have been purchased, and so the `mas` lines fail.

To fix this, use my personal Apple ID on the App Store and use whatever
Apple ID for iCloud.

(`mas` version 1.7.0 will be able to purchase apps:
mas-cli/mas#264 ... but will require some custom
code to run `mas purchase` since that's not what Homebrew does.)
This was referenced May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Purchased Apps Feature (enhancement)
3 participants