From 8e993e00c862734f438e32ceff8ee0772706e039 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 24 Dec 2021 18:12:36 -0500 Subject: [PATCH] prepare for macOS bundle --- CMakeLists.txt | 20 ++++++++++++++++++++ res/Info.plist | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 res/Info.plist diff --git a/CMakeLists.txt b/CMakeLists.txt index 1700e1c9..b524bfd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ project(furnace) set(CMAKE_CXX_STANDARD 14) +set(CMAKE_PROJECT_VERSION_MAJOR 0) +set(CMAKE_PROJECT_VERSION_MINOR 1) +set(CMAKE_PROJECT_VERSION_PATCH 0) + if (ANDROID) set(BUILD_GUI OFF) else() @@ -149,3 +153,19 @@ endif() if (WIN32) target_link_libraries(furnace shlwapi -static) endif() + +install(TARGETS furnace RUNTIME DESTINATION bin) + +set(CPACK_PACKAGE_NAME "Furnace") +set(CPACK_PACKAGE_VENDOR "tildearrow") +set(CPACK_PACKAGE_DESCRIPTION "free and open-source chiptune tracker") + +if (APPLE) + set(CPACK_GENERATOR Bundle) + set(CPACK_BUNDLE_NAME "Furnace") + set(CPACK_BUNDLE_PLIST ${CMAKE_SOURCE_DIR}/res/Info.plist) + set(CPACK_BUNDLE_ICON ${CMAKE_SOURCE_DIR}/res/icon.icns) + set(CPACK_BUNDLE_STARTUP_COMMAND "furnace") +endif() + +include(CPack) \ No newline at end of file diff --git a/res/Info.plist b/res/Info.plist new file mode 100644 index 00000000..d1e67257 --- /dev/null +++ b/res/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + furnace + CFBundleGetInfoString + + CFBundleIconFile + icon + CFBundleIdentifier + org.tildearrow.furnace + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + 1.0 + CFBundleName + Furnace + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSHumanReadableCopyright + + NSHighResolutionCapable + + +