mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
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:
parent
e8fd2ce2aa
commit
365b0a31ed
2 changed files with 60 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue