Development of the hard X-ray source based on a tabletop electron storage ring