Travis: add Mojave deploy target and release a zipped .dmg (#3819)

* add osx mojave build+deploy

* add job names, change variables

* add zipping to packaging step

* see #3814

* update to high sierra

* update homebrew

* xcode 11.1

* [skip ci] add link to config explorer
This commit is contained in:
tooomm 2019-10-22 01:06:40 +02:00 committed by Zach H
parent e8fd2ce2aa
commit 365b0a31ed
2 changed files with 60 additions and 5 deletions

View file

@ -41,6 +41,10 @@ while [[ "$@" ]]; do
BUILDTYPE="Release"
shift
;;
'--zip')
MAKE_ZIP=1
shift
;;
*)
if [[ $1 == -* ]]; then
echo "unrecognized option: $1"
@ -108,6 +112,13 @@ if [[ $MAKE_PACKAGE ]]; then
echo "could not find package" >&2
exit 1
fi
mv "$path/$file" "$path/${file%.*}-$PACKAGE_NAME.${file##*.}"
new_name="$path/${file%.*}-$PACKAGE_NAME."
if [[ $MAKE_ZIP ]]; then
zip "${new_name}zip" "$path/$file"
mv "$path/$file" "$path/_$file"
else
extension="${file##*.}"
mv "$path/$file" "$new_name$extension"
fi
fi
fi