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.
Thats almost right.
Your State Legislature has plenary authority to choose electors. All Legislatures have passed laws describing the process they will follow to do the choosing.
It also happens that all 50 Legislatures have chosen to use people voting as the method by which the Legislature does the choosing. This is not required by the Constitution, which has no provision for parties, nominations, conventions. running, calling states, or any of that other nonsense.
Its my opinion that all laws which pretend to bind electors are unconstitutional. Once the 535 Electors are chosen, they are (legally) free to choose any eligible person as President. The 3 Electors Congress awarded itself in 1960 may be different.