Change tag for app, [build app osx]

This commit is contained in:
Akshay Arora 2018-06-26 13:18:27 +05:30 committed by GitHub
parent 978c3ff229
commit 815f0016a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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;