Combining the bootloading and programming for large scale production?

the IDE always creates at build two hex files. one for serial upload and second with hex file with a bootloader for ISP flashing with a programmer over ISP.
for ISP you can use avrdude from command line, or change the entries in platform.txt and use Upload with programmer in Sketch menu