From 835ac18973384cecf100cdfff91ad19336915853 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 12 Sep 2019 01:37:39 +1000 Subject: [PATCH] make app bundle on macos --- .travis/script.sh | 4 +++- app/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis/script.sh b/.travis/script.sh index c096b3a40..684d4cb77 100644 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -8,7 +8,9 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # Make make -j$(sysctl -n hw.ncpu) - BUNDLE_PATH=$(find / -name "Olive.app") + BUNDLE_PATH=$(find . -name "Olive.app") + + echo Found app at: $BUNDLE_PATH # Move Qt deps into bundle macdeployqt $BUNDLE_PATH diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 3ca92041e..dbc7ae8ea 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -39,6 +39,10 @@ add_subdirectory(window) set(OLIVE_TARGET "olive-editor") if(APPLE) set(OLIVE_TARGET "Olive") + SET_TARGET_PROPERTIES(${OLIVE_TARGET} PROPERTIES + MACOSX_BUNDLE TRUE + MACOSX_FRAMEWORK_IDENTIFIER org.olivevideoeditor.Olive + ) endif() set(OLIVE_RESOURCES