mirror of https://github.com/AxioDL/metaforce.git
Copy urde/hecl/visigen into macOS app bundle
This commit is contained in:
parent
32ba74db08
commit
aace28fc19
|
@ -144,10 +144,20 @@ if (WIN32)
|
||||||
target_link_libraries(hecl-gui PRIVATE
|
target_link_libraries(hecl-gui PRIVATE
|
||||||
Version)
|
Version)
|
||||||
elseif (APPLE)
|
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)
|
target_sources(hecl-gui PRIVATE platforms/mac/mainicon.icns)
|
||||||
set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES
|
set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES
|
||||||
MACOSX_PACKAGE_LOCATION Resources
|
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 ()
|
endif ()
|
||||||
|
|
||||||
add_subdirectory(platforms/freedesktop)
|
add_subdirectory(platforms/freedesktop)
|
||||||
|
@ -161,7 +171,3 @@ endif ()
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
target_compile_options(hecl-gui PRIVATE -Wno-misleading-indentation)
|
target_compile_options(hecl-gui PRIVATE -Wno-misleading-indentation)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set_target_properties(hecl-gui PROPERTIES
|
|
||||||
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist"
|
|
||||||
)
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ QVariant SysReqTableModel::data(const QModelIndex& index, int role) const {
|
||||||
return m_freeDiskSpace >= qint64(5) * 1000 * 1000 * 1000;
|
return m_freeDiskSpace >= qint64(5) * 1000 * 1000 * 1000;
|
||||||
case 4:
|
case 4:
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
return m_macosMajor > 10 || m_macosMinor >= 9;
|
return m_macosMajor > 10 || m_macosMinor >= 11;
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
return m_win7SP1OrGreater;
|
return m_win7SP1OrGreater;
|
||||||
#else
|
#else
|
||||||
|
@ -191,7 +191,7 @@ QVariant SysReqTableModel::data(const QModelIndex& index, int role) const {
|
||||||
return tr("5 GB (MP1)");
|
return tr("5 GB (MP1)");
|
||||||
case 4:
|
case 4:
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
return tr("macOS 10.9");
|
return tr("macOS 10.11");
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
return tr("Windows 7 SP1");
|
return tr("Windows 7 SP1");
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
|
|
|
@ -5,21 +5,21 @@
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>hecl-gui</string>
|
<string>hecl-gui</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>Version BETA</string>
|
<string>Version ALPHA</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>BETA</string>
|
<string>ALPHA</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>2015-2018 Antidote / Jackoalan</string>
|
<string>2015-2021 AxioDL Team</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>mainicon.icns</string>
|
<string>mainicon.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.axiodl.HECL</string>
|
<string>com.axiodl.URDE</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>HECL</string>
|
<string>URDE</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>BETA</string>
|
<string>ALPHA</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue