Skip to content

Use MAS region instead of macOS region & add mas region #689

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

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

rgoldberg
Copy link
Contributor

Use MAS region instead of macOS region & add mas region

Resolve #684

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Use region from `SKStorefront` obtained from `SKPaymentQueue` for macOS 10.15+.

Pass `region` as argument to `lookup` & `search` functions instead of saving as a class member to isolate region to specific calls.

Rename `country` as `region` as much as possible.

Minor cleanup.

Resolve mas-cli#684

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
@rgoldberg rgoldberg added this to the 1.8.9 milestone Dec 30, 2024
@rgoldberg rgoldberg self-assigned this Dec 30, 2024
@rgoldberg rgoldberg merged commit f34efa9 into mas-cli:main Dec 30, 2024
3 checks passed
@rgoldberg rgoldberg deleted the 684-region branch December 30, 2024 05:03
@liby
Copy link

liby commented Mar 11, 2025

I've been exploring the new region subcommand added to mas CLI in version 1.9.0 and have some observations I'd like to clarify:

  1. I've upgraded to mas 1.9.0 on macOS 15.3.1 and ran mas region --help. It appears this command currently only displays the App Store region without the ability to set it. Is this correct?

  2. I've noticed that mas region doesn't actually show my Mac App Store region (US App Store account). Instead, it reflects my macOS system region setting:

    image
    • When my macOS region is set to CN, mas region outputs CN

    • When I change my macOS region to US, mas region outputs US

I tried to find documentation about this feature by looking at the references in the GitHub issues. In #444, you pointed to #75 for information about the region command, but when I checked the comments related to #75, it referred back to #444 for details on the --region option. Neither issue provides clear usage instructions.

Could you provide some clarity on the current functionality and intended use of this command?

@rgoldberg
Copy link
Contributor Author

rgoldberg commented Mar 13, 2025

@liby mas region is currently display only, as per mas region --help.

The 2 issues you referenced are feature requests; neither has been implemented yet.

#684 is the feature request for the existing mas region; it is linked as a closed issue in this PR's description.

If mas cannot obtain what it thinks is the MAS region, it then defaults to the macOS region (from System Settings). That's possibly what's happening in your case.

I don't have credit cards in multiple countries. I tested by using my Apple ID in both macOS & the MAS, then I changed the Apple ID in the MAS (via the MAS GUI, not from the command line) to a friend's Apple ID from another country. mas region always showed the region of the Apple ID used in the MAS, not the region of the Apple ID used in macOS.

Maybe the Apple private framework behaves differently for changing the setting you changed. Maybe you cannot have a different region for the same Apple ID in the MAS & macOS.

Can you tell me your region in the MAS & your region in macOS before & after your defaults write …?

Can you try changing the country in your MAS GUI, rather than using a command line?

@rgoldberg
Copy link
Contributor Author

@liby See #782

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.

Use MAS region instead of macOS region
2 participants