Fix mac build.
This commit is contained in:
parent
587a35eab4
commit
d7df24816c
@ -1,12 +1,6 @@
|
|||||||
function(install_script_files scriptname)
|
function(install_script_files scriptname)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
foreach(file ${ARGN})
|
install(FILES ${ARGN} DESTINATION ${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/)
|
||||||
configure_file(
|
|
||||||
"${file}"
|
|
||||||
"${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/${file}"
|
|
||||||
COPY_ONLY
|
|
||||||
)
|
|
||||||
endforeach(file)
|
|
||||||
else(APPLE)
|
else(APPLE)
|
||||||
install(FILES ${ARGN} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/clementine/scripts/${scriptname}/)
|
install(FILES ${ARGN} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/clementine/scripts/${scriptname}/)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
@ -78,7 +78,7 @@ ScriptManager::ScriptManager(QObject* parent)
|
|||||||
#if defined(Q_OS_WIN32)
|
#if defined(Q_OS_WIN32)
|
||||||
search_paths_ << QCoreApplication::applicationDirPath() + "/scripts";
|
search_paths_ << QCoreApplication::applicationDirPath() + "/scripts";
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
search_paths_ << mac::GetResourcesPath() + "/scripts");
|
search_paths_ << mac::GetResourcesPath() + "/scripts";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user