EDIT: The company that made this lightbar is out of business. I am leaving this up in case anyone still needs it.
This will allow you to mount the Gulfcoast Robotics LED Light Bar on the top rail of the M5. It is almost a perfect fit end to end.
If you have one of their old models with an XT60 power cord attached, you can simply print and replace the end caps and use an XT60→DC adapter and a 24V power supply and the light requires no further modification.
If you have one of the newer models with a DC outlet on the end you will need take off the end, remove the plug, and solder the dimmer on directly as it will not fit with the plug on the end.
You need to remove both end caps and replace them with the printed ones here, as the factory mounting brackets are not compatible.
Print two of the LED clips. They snap on to the top of the lightbar and slide over the top bar on the M5 to mount it in place.
Light Bar:
If you have one of the old models created for the Ender 3 printer, this is the XT60 to DC adapter and power supply I used to be able to plug it in directly, however any 24V power supply and appropriate XT60 adapter will work. You will not need these if you have the new model with the plug on the end:
https://www.amazon.com/gp/product/B09G33BPL2
https://www.amazon.com/gp/product/B083TCHWLZ
The author marked this model as their own original creation.