Installing copter daily builds with APM P2?

How does one direct APM P2 to use a downloaded firmware file instead of the conventional way using the internet? Thx