How to install self-hosted on macOS ARM architecture?

I don’t know about macOS, but Discourse supports ARM. The official email in software, however, doesn’t.