mkdir dist -p
filename=`date --rfc-3339=date`
echo "Exporting to file dist/$filename.zip"
if [ -f "dist/$filename.zip" ];
then
  echo "Can't export! The file already exists."
  exit
fi

git archive HEAD --format=zip > "dist/$filename.zip"
echo "Done."


mkdir dist -p
filename=`(echo -n "dist/"; echo -n \`git describe\`; echo ".zip") | cat`

echo "Exporting to file $filename"

if [ -f "$filename" ];
then
  echo "Can't export! The file already exists."
  exit
fi

git archive HEAD --format=zip > "$filename"
echo "Done."

Use git describe when creating release zip for app store
Use git describe when creating release zip for app store
