Have you tried changing the "Target Platform" in the "Build Settings" (File > Build Settings...)? https://docs.unity3d.com/Manual/BuildSettingsStandalone.html Note: If you're developing on Linux, you won't be able to make a macOS build.
In order for those platforms to appear in the build settings, you first need to install them via Unity Hub.