My personal favourite way of doing the job is to have the winch below deck, use a double drum, and a continuous loop. Starting from the lower part of the drum and assuming that the sails are fully in, there would be however many turns the winch would offer plus a bit for luck, then through a fairlead facing sternward, round a pulley or similar at the stern, then forward in a straight line to a pulley near the mast, back to another pulley near the stern, another fairlead and back to the upper drum. The take-off for the sail booms would be in the run just forward of the 1st pulley, and would be two single lines, one to each boom via whatever type of guide you prefer. A tension link (or rubber band as most people call it) lives in the loop just forward of the take-off. The straight run needs to be the max let-out distance of the booms + the max length of the tension link + a bit for Murphy's law.
Some favour a single drum and a simple line, but I have always run into tangling problems - while it is probably impossible to design a reliable simple knot-tying machine, it it virtually impossible to avoid creating one without a great deal of engineering excellence. My hat off to those who manage it.