diff --git a/.travis.yml b/.travis.yml index fd36ae493..11b1caf1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -191,20 +191,21 @@ script: pushd kivy-sdk-packager/osx; app_date=$(python -c "from datetime import datetime; print(datetime.utcnow().strftime('%Y%m%d'))"); git_tag=$(git rev-parse --short HEAD); - app_name="dev0.$app_date.$git_tag"; if [ "${PY}" == "3" ]; then yes | ./create-osx-bundle.sh python3 master > output.txt; + app_ver=$(Kivy.app/Contents/Resources/script -c 'import kivy; print(kivy.__version__)'); mv Kivy.app Kivy3.app; ./create-osx-dmg.sh Kivy3.app; mkdir app; - mv Kivy3.dmg app/"Kivy-$app_name-python3.6.5".dmg; + mv Kivy3.dmg app/"Kivy-$app_ver-$git_tag-$app_date"-python3.6.5".dmg; else - ./create-osx-bundle.sh python2 master > output.txt; + ./create-osx-bundle.sh python2 master > output.txt; + app_ver=$(Kivy.app/Contents/Resources/script -c 'import kivy; print(kivy.__version__)'); mv Kivy.app Kivy2.app; ./create-osx-dmg.sh Kivy2.app; mkdir app; - mv Kivy2.dmg app/Kivy-$app_name-python2.dmg; + mv Kivy2.dmg app/"Kivy-$app_ver-$git_tag-$app_date"-python2.dmg; fi; yes | rsync -avh -e "ssh -p 2458" --include="*/" --include="*.dmg" --exclude="*" "./app/" "root@$SERVER_IP:/web/downloads/ci/osx/app/"; popd;