diff --git a/.travis/travis_build.sh b/.travis/travis_build.sh index f89cdabe..186f1b93 100755 --- a/.travis/travis_build.sh +++ b/.travis/travis_build.sh @@ -37,6 +37,6 @@ make -j ${JOBS} || exit 3 # Build the package on Linux if [[ $TRAVIS_OS_NAME == 'linux' ]] then - make -j ${JOBS} package || exit 4 + make -j ${JOBS} package || exit 4 fi diff --git a/cmake/macos/Hyperion.icns b/cmake/macos/Hyperion.icns new file mode 100644 index 00000000..784cdcc0 Binary files /dev/null and b/cmake/macos/Hyperion.icns differ diff --git a/cmake/macos/Info.plist b/cmake/macos/Info.plist new file mode 100644 index 00000000..2adbbe7b --- /dev/null +++ b/cmake/macos/Info.plist @@ -0,0 +1,70 @@ + + + + + CFBundleVersion + 1489366340 + CFBundleSignature + ???? + + CFBundlePackageType + APPL + CFBundleInfoDictionaryVersion + 6.0 + + CFBundleExecutable + hyperiond + CFBundleIconFile + Hyperion.icns + + CFBundleIdentifier + com.hyperion-project.Hyperion + CFBundleName + Hyperion + CFBundleShortVersionString + 2.0 + + BuildMachineOSBuild + 11G63 + CFBundleDevelopmentRegion + en + + DTCompiler + + DTPlatformBuild + 4H1003 + DTPlatformVersion + GM + DTSDKBuild + 12D75 + DTSDKName + macosx10.8 + DTXcode + 0462 + DTXcodeBuild + 4H1003 + + LSApplicationCategoryType + public.app-category.utilities + LSMinimumSystemVersion + 10.6 + + NSHumanReadableCopyright + Copyright © 2017 Hyperion team. All rights reserved. + + NSPrincipalClass + NSApplication + NSHighResolutionCapable + + + SUEnableAutomaticChecks + + SUEnableSystemProfiling + + SUShowReleaseNotes + + SUAllowsAutomaticUpdates + + + diff --git a/cmake/packages.cmake b/cmake/packages.cmake index 92ad79d8..ed1d6976 100644 --- a/cmake/packages.cmake +++ b/cmake/packages.cmake @@ -1,6 +1,10 @@ # cmake file for generating distribution packages -SET ( CPACK_GENERATOR "DEB" "TGZ" "STGZ" ) # "RPM" +IF (APPLE) + SET ( CPACK_GENERATOR "TGZ" "Bundle") # "RPM" +ELSE() + SET ( CPACK_GENERATOR "DEB" "TGZ" "STGZ") # "RPM" +ENDIF() SET ( CPACK_PACKAGE_NAME "hyperion" ) SET ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hyperion is an open source ambient light implementation" ) @@ -15,9 +19,16 @@ SET ( CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5core5a (>= 5.2.0), libqt5network5 (>= SET ( CPACK_DEBIAN_PACKAGE_SECTION "Miscellaneous" ) SET ( CPACK_RPM_PACKAGE_NAME "Hyperion" ) -SET ( CPACK_RPM_PACKAGE_URL "https://github.com/hyperion-project/hyperion" ) +SET ( CPACK_RPM_PACKAGE_URL "https://github.com/hyperion-project/hyperion.ng" ) SET ( CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/rpm/postinst" ) +SET ( CPACK_PACKAGE_FILE_NAME "Hyperion") +SET ( CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Hyperion.icns ) +SET ( CPACK_BUNDLE_NAME "Hyperion" ) +SET ( CPACK_BUNDLE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Hyperion.icns ) +SET ( CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Info.plist ) +#SET ( CPACK_BUNDLE_STARTUP_COMMAND - path to a file that will be executed when the user opens the bundle. Could be a shell-script or a binary. ) + SET(CPACK_PACKAGE_VERSION_MAJOR "${HYPERION_VERSION_MAJOR}") SET(CPACK_PACKAGE_VERSION_MINOR "${HYPERION_VERSION_MINOR}") SET(CPACK_PACKAGE_VERSION_PATCH "${HYPERION_VERSION_PATCH}")