Proper way to build dist

The makedist-mac.sh and makedist-win.bat have been removed from all the example protects, together with the entire installer folder. Is there another proper way to build all and make installers?