I'd still try to shove the platform-specific stuff in a package manager and delegate that complexity to it.