Fixes for mac zip.

This commit is contained in:
Martin Rotter 2017-06-28 06:33:27 +02:00
parent d85858e480
commit 7c79b8948f

View File

@ -592,14 +592,26 @@ win32 {
QMAKE_EXTRA_TARGETS += seven_zip zip
}
unix|mac {
unix|!mac {
seven_zip.target = 7zip
seven_zip.depends = install
seven_zip.commands = 7za a -t7z "$$TARGET-$$APP_VERSION-$$APP_REVISION-unix-mac.7z" $$shell_quote($$shell_path($$PREFIX/*))
seven_zip.commands = 7za a -t7z "$$TARGET-$$APP_VERSION-$$APP_REVISION-linux.7z" $$shell_quote($$shell_path($$PREFIX/*))
zip.target = zip
zip.depends = install
zip.commands = 7za a -tzip "$$TARGET-$$APP_VERSION-$$APP_REVISION-unix-mac.zip" $$shell_quote($$shell_path($$PREFIX/*))
zip.commands = 7za a -tzip "$$TARGET-$$APP_VERSION-$$APP_REVISION-linux.zip" $$shell_quote($$shell_path($$PREFIX/*))
QMAKE_EXTRA_TARGETS += seven_zip zip
}
mac {
seven_zip.target = 7zip
seven_zip.depends = install
seven_zip.commands = 7za a -t7z "$$TARGET-$$APP_VERSION-$$APP_REVISION-mac.7z" $$shell_quote($$shell_path($$PREFIX))
zip.target = zip
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
}