Distributing python command for mac and windows

I was packaging up a python command for distribution and ran into issues with the plugin not loading the first time. I thought packaging up as an .rhi file would simplify things, but it looks like this may only work on windows. Is that correct? All of the documentation shows windows file paths, but I couldn’t find anything that explicitly said only supported on Windows. I was following instructions found Creating Rhino Commands Using Python with Python

What is the recommended way of distributing python plugins that need to go on mac and windows?

Edit: Found this workflow for mac Plugin Installers (Mac) with C#
However that looks maybe specific to c# and plugins, not commands?