Altium Designer : How to make a custom Top paste for D2PAK pad
Decrease the size of the automatically generated paste feature to zero (by making the paste mask expansion a negative number).
Then add whatever shapes you want to the paste mask layer using the Place Region command.