diff --git a/CMakeLists.txt b/CMakeLists.txt index 6acfd72..49f9f9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -441,6 +441,14 @@ if (SUPPORT_CONSOLE_APP) if (MSVC) set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d ) endif () + if (APPLE) + string(TIMESTAMP CURRENT_YEAR "%Y") + configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/console/Info.plist.in + ${CMAKE_CURRENT_BINARY_DIR}/Info.plist + ) + target_link_options(${name} PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,Info.plist) + endif () if (NOT TIDY_CONSOLE_SHARED) set_target_properties( ${name} PROPERTIES COMPILE_FLAGS "-DTIDY_STATIC" ) diff --git a/build/cmake/.gitignore b/build/cmake/.gitignore index 23b5a7b..5a1fecb 100644 --- a/build/cmake/.gitignore +++ b/build/cmake/.gitignore @@ -33,3 +33,4 @@ tidy1.xsl tidy.pc *.vcproj .pkg +Info.plist diff --git a/console/Info.plist.in b/console/Info.plist.in new file mode 100644 index 0000000..06bf3f7 --- /dev/null +++ b/console/Info.plist.in @@ -0,0 +1,18 @@ + + + + + CFBundleDisplayName + HTML Tidy + CFBundleIdentifier + org.htacg.html-tidy.tidy5 + CFBundleInfoDictionaryVersion + 6.0 + CFBundleShortVersionString + @LIBTIDY_VERSION@ + CFBundleVersion + @LIBTIDY_DATE@ + NSHumanReadableCopyright + ©@CURRENT_YEAR@ HTACG and Contributors + +