Copy urde/hecl/visigen into macOS app bundle

This commit is contained in:
Luke Street 2021-03-19 14:59:34 -04:00
parent 32ba74db08
commit aace28fc19
4 changed files with 18 additions and 12 deletions

View File

@ -144,10 +144,20 @@ if (WIN32)
target_link_libraries(hecl-gui PRIVATE
Version)
elseif (APPLE)
set_target_properties(hecl-gui PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist"
)
target_sources(hecl-gui PRIVATE platforms/mac/mainicon.icns)
set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
add_custom_command(
TARGET hecl-gui POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:urde> $<TARGET_FILE_DIR:hecl-gui>
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:hecl> $<TARGET_FILE_DIR:hecl-gui>
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:visigen> $<TARGET_FILE_DIR:hecl-gui>
DEPENDS urde hecl visigen
)
endif ()
add_subdirectory(platforms/freedesktop)
@ -161,7 +171,3 @@ endif ()
if (NOT MSVC)
target_compile_options(hecl-gui PRIVATE -Wno-misleading-indentation)
endif ()
set_target_properties(hecl-gui PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist"
)

View File

@ -164,7 +164,7 @@ QVariant SysReqTableModel::data(const QModelIndex& index, int role) const {
return m_freeDiskSpace >= qint64(5) * 1000 * 1000 * 1000;
case 4:
#ifdef __APPLE__
return m_macosMajor > 10 || m_macosMinor >= 9;
return m_macosMajor > 10 || m_macosMinor >= 11;
#elif defined(_WIN32)
return m_win7SP1OrGreater;
#else
@ -191,7 +191,7 @@ QVariant SysReqTableModel::data(const QModelIndex& index, int role) const {
return tr("5 GB (MP1)");
case 4:
#ifdef __APPLE__
return tr("macOS 10.9");
return tr("macOS 10.11");
#elif defined(_WIN32)
return tr("Windows 7 SP1");
#elif defined(__linux__)

View File

@ -5,21 +5,21 @@
<key>CFBundleExecutable</key>
<string>hecl-gui</string>
<key>CFBundleGetInfoString</key>
<string>Version BETA</string>
<string>Version ALPHA</string>
<key>CFBundleShortVersionString</key>
<string>BETA</string>
<string>ALPHA</string>
<key>NSHumanReadableCopyright</key>
<string>2015-2018 Antidote / Jackoalan</string>
<string>2015-2021 AxioDL Team</string>
<key>CFBundleIconFile</key>
<string>mainicon.icns</string>
<key>CFBundleIdentifier</key>
<string>com.axiodl.HECL</string>
<string>com.axiodl.URDE</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>HECL</string>
<string>URDE</string>
<key>CFBundleVersion</key>
<string>BETA</string>
<string>ALPHA</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>

Binary file not shown.