diff --git a/mpv-iina.rb b/mpv-iina.rb index 3cc92ec..491cf97 100644 --- a/mpv-iina.rb +++ b/mpv-iina.rb @@ -52,6 +52,11 @@ class MpvIina < Formula url "https://raw.githubusercontent.com/iina/homebrew-mpv-iina/master/other/14229.patch" sha256 "aa5cbc43a8fb6ac8cf89560ab02924602971e80a9a42ec3d72bcebfa7deb0e0e" end + + patch do + url "https://raw.githubusercontent.com/iina/homebrew-mpv-iina/master/other/disable-swift.patch" + sha256 "391674506aea158026dd9a3c6972a5b2855b2c30cde1b0f4ee19b95d53f03ed8" + end end def install diff --git a/other/disable-swift.patch b/other/disable-swift.patch new file mode 100644 index 0000000..689785b --- /dev/null +++ b/other/disable-swift.patch @@ -0,0 +1,37 @@ +diff --git a/osdep/mac/app_bridge.m b/osdep/mac/app_bridge.m +index bf39efe603..6b99d96177 100644 +--- a/osdep/mac/app_bridge.m ++++ b/osdep/mac/app_bridge.m +@@ -93,27 +93,27 @@ const struct m_sub_options *app_bridge_vo_conf(void) + + void cocoa_init_media_keys(void) + { +- [[AppHub shared] startRemote]; ++ return; + } + + void cocoa_uninit_media_keys(void) + { +- [[AppHub shared] stopRemote]; ++ return; + } + + void cocoa_set_input_context(struct input_ctx *input_context) + { +- [[AppHub shared] initInput:input_context]; ++ return; + } + + void cocoa_set_mpv_handle(struct mpv_handle *ctx) + { +- [[AppHub shared] initMpv:ctx]; ++ return; + } + + void cocoa_init_cocoa_cb(void) + { +- [[AppHub shared] initCocoaCb]; ++ return; + } + + int cocoa_main(int argc, char *argv[])