I made this over the weekend and tweaked it to mount solidly but be able to adjust or remove quickly. This will fit any picatinny rail and is based off the pressure switch for my generic $20 light from Amazon that seems to be fairly ubiquitous.
I've included a STEP file so you can modify it to your needs.
Print on the side with tree supports. You will need some tweezers to clear the supports out of the inside of the release tab. I used a hobby knife to clear the supports from the sides of the release tab.
I included a couple pictures… the bronze one is for contrast against the black body. The black/dark gray one was printed in carbon fiber ABS.
The author marked this model as their own original creation.