Added dmg target and upload it.

This commit is contained in:
Martin Rotter 2017-06-29 06:41:49 +02:00
parent 7c79b8948f
commit c598acc06c
2 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@ mkdir rssguard-build && cd rssguard-build
qmake ..
make
make install
make zip
make dmg
ls -lha
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
@ -18,7 +18,7 @@ git config --global user.email "rotter.martinos@gmail.com"
git config --global user.name "martinrotter"
git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
set -- *.zip
set -- *.dmg
dmgname="$1"
dmgnamenospace="${dmgname// /-}"
echo "DMGNAME IS: $dmgname"

View File

@ -613,7 +613,11 @@ mac {
zip.depends = install
zip.commands = 7za a -tzip "$$TARGET-$$APP_VERSION-$$APP_REVISION-mac.zip" $$shell_quote($$shell_path($$PREFIX))
QMAKE_EXTRA_TARGETS += seven_zip zip
dmg.target = dmg
dmg.depends = install
dmg.commands = macdeployqt $$shell_quote($$shell_path($$PREFIX)) -dmg
QMAKE_EXTRA_TARGETS += seven_zip zip dmg
}
# Create NSIS installer target on Windows.