Upload compiled Arduino code without IDE

Is there a way to...

  1. Compile Arduino code into file (with or without IDE)
  2. Send file to someone else.
  3. Have them upload that compiled file onto an Arduino (preferably without the IDE)

For Step 3, I need to make it as simple as possible for someone to upload the file. Any suggestions?

I found a program called XLoader that can supposedly upload a hex file onto the board.

http://www.hobbytronics.co.uk/arduino-xloader

I'll give that a try. If it works I could send the hex file and the XLoader executable and have someone upload my code that way.

Will report back my findings. If anyone have a alternate method though I'd like to hear it.