How to install DriverKit dext by script

I read the doc of installing system extensions

https://developer.apple.com/documentation/systemextensions/installing_system_extensions_and_drivers?language=objc

, but actually our product is a framework and installed by .pkg. I/O Kit kext is installed by script in .pkg. So I meet a problem :how to install DriverKit dext by script?

I don't think there's any way to do this. Your best bet is to build a simple application that contains the DEXT and activates it when launched. You could launch the application from a postinstall script in your .pkg file. Be aware that your application needs to be installed to /Applications/ and that the DEXT will automatically be uninstalled when the application is removed.

How to install DriverKit dext by script
 
 
Q