Cristiano Ronaldo took centre-stage as Portugal outclassed the Republic of Ireland in their final warm-up game before Euro 2024.