That's great to hear that you were able to find a solution to your issue! Having your pre-build application throw an exception when the checksum check fails is a clever approach to abort the build process. It's wonderful when developers like yourself are able to troubleshoot and come up with effective solutions.
If you have any further questions or need assistance with anything else, feel free to ask. Keep up the great work!