Tried RockyMtnMark's Picatinny rail for the P365, and wasn't a fan of how low my flashlight was mounted when using it.
The extra height was needed to allow for the screw and nut mounting hardware. But I found that the clamping force from my Olight seemed plenty enough to hold it in place!
Using the freecad file that RockyMtnMark provided, I removed the screw and nut holes and trimmed down the height of the rail. The rail surface is ~6mm closer to the frame now.
An added benefit is that now the rail is easy to remove without any tools, since there aren't many hard holsters that can accommodate a flashlight.
In making my edits, the height of the rail is now much shorter than the MIL-STD-1913 specifications. As such, I can't guarantee that this works with all accessories made for picatinny rails.
I am using an Olight PL-Mini 2 Valkyrie, and it works great since it's not grabbing as much of the rail. There is no wobble or play whatsoever with how solid the Olight's rail mount is.
P365_1913_Slim_Rail_L.stl | 12.1KB |