mirror of
https://github.com/overte-org/overte.git
synced 2025-06-27 16:49:35 +02:00
Merge pull request #16553 from MiladNazeri/macScreenshareFix
Dev-2812: Broadcasting from MacOs won't work
This commit is contained in:
commit
f01a39adf5
3 changed files with 11 additions and 11 deletions
|
@ -185,7 +185,10 @@ if (BUILD_TOOLS AND NPM_EXECUTABLE)
|
||||||
add_dependencies(resources jsdoc)
|
add_dependencies(resources jsdoc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_dependencies(${TARGET_NAME} resources)
|
if (WIN32 OR APPLE)
|
||||||
|
add_dependencies(${TARGET_NAME} resources screenshare)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# These are external plugins, but we need to do the 'add dependency' here so that their
|
# These are external plugins, but we need to do the 'add dependency' here so that their
|
||||||
|
@ -323,6 +326,10 @@ if (APPLE)
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
||||||
"${CMAKE_SOURCE_DIR}/scripts"
|
"${CMAKE_SOURCE_DIR}/scripts"
|
||||||
"${RESOURCES_DEV_DIR}/scripts"
|
"${RESOURCES_DEV_DIR}/scripts"
|
||||||
|
# copy screenshare app to the resource folder
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/../screenshare/hifi-screenshare-darwin-x64/hifi-screenshare.app"
|
||||||
|
"${RESOURCES_DEV_DIR}/hifi-screenshare.app"
|
||||||
# copy JSDoc files beside the executable
|
# copy JSDoc files beside the executable
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
||||||
"${CMAKE_SOURCE_DIR}/tools/jsdoc/out"
|
"${CMAKE_SOURCE_DIR}/tools/jsdoc/out"
|
||||||
|
@ -347,7 +354,7 @@ if (APPLE)
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
||||||
"${PROJECT_SOURCE_DIR}/resources/serverless/redirect.json"
|
"${PROJECT_SOURCE_DIR}/resources/serverless/redirect.json"
|
||||||
"${RESOURCES_DEV_DIR}/serverless/redirect.json"
|
"${RESOURCES_DEV_DIR}/serverless/redirect.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
# call the fixup_interface macro to add required bundling commands for installation
|
# call the fixup_interface macro to add required bundling commands for installation
|
||||||
fixup_interface()
|
fixup_interface()
|
||||||
|
|
|
@ -45,7 +45,7 @@ private:
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-win32-x64/hifi-screenshare.exe" };
|
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-win32-x64/hifi-screenshare.exe" };
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/build/screenshare/hifi-screenshare-darwin-x64/hifi-screenshare.app" };
|
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/../Resources/hifi-screenshare.app" };
|
||||||
#else
|
#else
|
||||||
// This path won't exist on other platforms, so the Screenshare Scripting Interface will exit early when invoked.
|
// This path won't exist on other platforms, so the Screenshare Scripting Interface will exit early when invoked.
|
||||||
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-other-os/hifi-screenshare" };
|
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-other-os/hifi-screenshare" };
|
||||||
|
@ -54,7 +54,7 @@ private:
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare.exe" };
|
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare.exe" };
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare.app" };
|
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/../Resources/hifi-screenshare.app" };
|
||||||
#else
|
#else
|
||||||
// This path won't exist on other platforms, so the Screenshare Scripting Interface will exit early when invoked.
|
// This path won't exist on other platforms, so the Screenshare Scripting Interface will exit early when invoked.
|
||||||
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare" };
|
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare" };
|
||||||
|
|
|
@ -23,13 +23,6 @@ if (WIN32)
|
||||||
|
|
||||||
set(EXECUTABLE_PATH "${SCREENSHARE_DESTINATION}/${SCREENSHARE_EXEC_NAME}")
|
set(EXECUTABLE_PATH "${SCREENSHARE_DESTINATION}/${SCREENSHARE_EXEC_NAME}")
|
||||||
optional_win_executable_signing()
|
optional_win_executable_signing()
|
||||||
elseif (APPLE)
|
|
||||||
set(PACKAGED_SCREENSHARE_FOLDER "hifi-screenshare-darwin-x64/${SCREENSHARE_EXEC_NAME}")
|
|
||||||
install(
|
|
||||||
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_SCREENSHARE_FOLDER}"
|
|
||||||
USE_SOURCE_PERMISSIONS
|
|
||||||
DESTINATION ${SCREENSHARE_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# DO build the Screenshare Electron app when building the `ALL_BUILD` target.
|
# DO build the Screenshare Electron app when building the `ALL_BUILD` target.
|
||||||
|
|
Loading…
Reference in a new issue