diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 341e90043..74bb9b592 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,12 +1,6 @@ function(install_script_files scriptname) if(APPLE) - foreach(file ${ARGN}) - configure_file( - "${file}" - "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/${file}" - COPY_ONLY - ) - endforeach(file) + install(FILES ${ARGN} DESTINATION ${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/) else(APPLE) install(FILES ${ARGN} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/clementine/scripts/${scriptname}/) endif(APPLE) diff --git a/src/scripting/scriptmanager.cpp b/src/scripting/scriptmanager.cpp index a6e20ece1..950eb3330 100644 --- a/src/scripting/scriptmanager.cpp +++ b/src/scripting/scriptmanager.cpp @@ -78,7 +78,7 @@ ScriptManager::ScriptManager(QObject* parent) #if defined(Q_OS_WIN32) search_paths_ << QCoreApplication::applicationDirPath() + "/scripts"; #elif defined(Q_OS_MAC) - search_paths_ << mac::GetResourcesPath() + "/scripts"); + search_paths_ << mac::GetResourcesPath() + "/scripts"; #endif }