Rebuild app file