mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Merge pull request #1671 from Nheko-Reborn/macos_matrix_urls
Add Matrix URL handling support to MacOS
This commit is contained in:
commit
15a3a2731d
2 changed files with 18 additions and 0 deletions
|
@ -676,6 +676,11 @@ if(WIN32)
|
||||||
else()
|
else()
|
||||||
qt_add_executable(nheko ${OS_BUNDLE} ${NHEKO_DEPS})
|
qt_add_executable(nheko ${OS_BUNDLE} ${NHEKO_DEPS})
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set_target_properties(nheko PROPERTIES MACOSX_BUNDLE_INFO_PLIST
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(HAVE_BACKTRACE_SYMBOLS_FD AND NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
if(HAVE_BACKTRACE_SYMBOLS_FD AND NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
set_target_properties(nheko PROPERTIES ENABLE_EXPORTS ON)
|
set_target_properties(nheko PROPERTIES ENABLE_EXPORTS ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -34,5 +34,18 @@
|
||||||
<string>NSApplication</string>
|
<string>NSApplication</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>CFBundleURLTypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLName</key>
|
||||||
|
<string>Matrix URI</string>
|
||||||
|
<key>CFBundleURLSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>matrix</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||||
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in a new issue