Skip to content

Commit

Permalink
Travis OSX: more debugging, and use ampersand to fail early
Browse files Browse the repository at this point in the history
  • Loading branch information
tlecomte committed Apr 10, 2018
1 parent 1527dfc commit 10b03c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/common.pri
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if(equals(PH_GIT_BRANCH, "master") || equals(PH_GIT_BRANCH, "HEAD")) {
PH_FULL_VERSION = $$system(git describe --tags --dirty)_$$PH_GIT_BRANCH
}

message("Version: $${VERSION} build $${BUILD} branch: $${PH_GIT_BRANCH}")
message("Last tag: $${LAST_TAG}, Version: $${VERSION}, build: $${BUILD}, branch: $${PH_GIT_BRANCH}, revision: $${PH_GIT_REVISION}, full version: $${PH_FULL_VERSION}")

# Define the preprocessor macro to get the application version in our application.
DEFINES += PH_VERSION=\\\"$$VERSION\\\"
Expand Down
12 changes: 6 additions & 6 deletions common/deploy.pri
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ win32 {
mac {
app_bundle {
# Info.plist
QMAKE_POST_LINK += plutil -replace CFBundleIdentifier -string com.phonations.$$lower($${TARGET}) $${TARGET}.app/Contents/Info.plist;
QMAKE_POST_LINK += plutil -replace CFBundleVersion -string $${BUILD} $${TARGET}.app/Contents/Info.plist;
QMAKE_POST_LINK += plutil -replace CFBundleShortVersionString -string $${VERSION} $${TARGET}.app/Contents/Info.plist;
QMAKE_POST_LINK += plutil -replace LSApplicationCategoryType -string public.app-category.video $${TARGET}.app/Contents/Info.plist;
QMAKE_POST_LINK += plutil -replace LSMinimumSystemVersion -string 10.8 $${TARGET}.app/Contents/Info.plist;
QMAKE_POST_LINK += plutil -replace NSHighResolutionCapable -string True $${TARGET}.app/Contents/Info.plist;
QMAKE_POST_LINK += plutil -replace CFBundleIdentifier -string com.phonations.$$lower($${TARGET}) $${TARGET}.app/Contents/Info.plist &&
QMAKE_POST_LINK += plutil -replace CFBundleVersion -string $${BUILD} $${TARGET}.app/Contents/Info.plist &&
QMAKE_POST_LINK += plutil -replace CFBundleShortVersionString -string $${VERSION} $${TARGET}.app/Contents/Info.plist &&
QMAKE_POST_LINK += plutil -replace LSApplicationCategoryType -string public.app-category.video $${TARGET}.app/Contents/Info.plist &&
QMAKE_POST_LINK += plutil -replace LSMinimumSystemVersion -string 10.8 $${TARGET}.app/Contents/Info.plist &&
QMAKE_POST_LINK += plutil -replace NSHighResolutionCapable -string True $${TARGET}.app/Contents/Info.plist

# removeapp target
removeapp.commands += rm -rf $${TARGET}.app
Expand Down

0 comments on commit 10b03c0

Please sign in to comment.