How to get hex file from arduino files ?

@theenggprojects , Isn't that what I posted 3 years ago?