I'm using standalone ATmega32u4 chips with the Arduino IDE. The problem is that these chips have DFU bootloader natively, which is incompatible with avrdude and Arduino uploaders. So, what do I do? Normally, I compile the code in Arduino IDE and then upload it with the FLIP. But recently I've discovered that there is another program, called BatchISP, which allows me to upload the code via command line. Just like avrdude it is a sequence of commands like for instance:
batchisp -device atmega32u4 -hardware usb -operation erase f memory
Now my question is: how to add this command set to the Arduino IDE? I want to be able to upload by simply pressing an upload button there, not by opening FLIP or something else.
I've checked the file programmers.txt where all Arduino programmers are configured, but it seems that all of them are for avrdude only.