An old "jury rig" way was to cock the piece, wrap a length of wire around the cocked spring( where there was room), twist it to hold, and then release the sear.
Mike