Jelajahi Sumber

cmake: Move obspython.py to Resources on macOS

derrod 3 tahun lalu
induk
melakukan
fd27ead2a7

+ 1 - 10
cmake/Modules/ObsHelpers_macOS.cmake

@@ -292,16 +292,7 @@ function(setup_obs_modules target)
   if(TARGET obspython)
     install(
       FILES "$<TARGET_FILE_DIR:obspython>/obspython.py"
-      DESTINATION "PlugIns"
-      COMPONENT obs_plugin_dev
-      EXCLUDE_FROM_ALL)
-
-    set(_COMMAND
-        "/usr/bin/codesign --force --sign \\\"${OBS_BUNDLE_CODESIGN_IDENTITY}\\\" $<$<BOOL:${OBS_CODESIGN_LINKER}>:--options linker-signed > \\\"\${CMAKE_INSTALL_PREFIX}/PlugIns/obspython.py\\\" > /dev/null"
-    )
-
-    install(
-      CODE "execute_process(COMMAND /bin/sh -c \"${_COMMAND}\")"
+      DESTINATION "Resources"
       COMPONENT obs_plugin_dev
       EXCLUDE_FROM_ALL)
   endif()

+ 0 - 6
cmake/bundle/macOS/bundleutils.cmake

@@ -85,12 +85,6 @@ if(EXISTS
        "${CMAKE_INSTALL_PREFIX}/${_BUNDLENAME}/Contents/MacOS/obs-ffmpeg-mux")
 endif()
 
-if(EXISTS
-   "${CMAKE_INSTALL_PREFIX}/${_BUNDLENAME}/Contents/PlugIns/obspython.py")
-  list(APPEND _OTHER_BINARIES
-       "${CMAKE_INSTALL_PREFIX}/${_BUNDLENAME}/Contents/PlugIns/obspython.py")
-endif()
-
 if(EXISTS
    "${CMAKE_INSTALL_PREFIX}/${_BUNDLENAME}/Contents/Resources/obs-mac-virtualcam.plugin"
 )