Packaging Mailpile for Windows currently uses the Nullsoft Installer System. All the files for it live in packages/windows/. A Makefile there provides the necessary build commands. The result should be a self-extracting EXE.