Electors choose the President.
Voting by members of the public has nothing to do with it.
Maybe this will help others if I have it correct:
Myself and other voters in my state cast our votes.
The winner, in my state, is Trump.
The GOP in my state selects the electors.
It is assumed that those electors chosen by the winning party of my state will vote for Trump at the convention.
However, if one or two choose not too, that is legal except now they will lose any love they may have had from the party leadership.