Deploying custom macOS LOB apps with Intune in 2023

How to repackage any .pkg or .dmg files into a custom .pkg, and use it to create a Line-of-Business app in Intune to deploy to your managed macOS devices.