mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
ProjectM on mac deployment fixes.
This commit is contained in:
parent
48521823e3
commit
d34283a113
3
3rdparty/libprojectm/CMakeLists.txt
vendored
3
3rdparty/libprojectm/CMakeLists.txt
vendored
@ -165,9 +165,10 @@ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/config.inp.in" "${CMAKE_CURRENT_SOUR
|
||||
FILE(GLOB presets "presets/*.milk" "presets/*.prjm" "presets/*.tga")
|
||||
if (APPLE)
|
||||
foreach (preset ${presets})
|
||||
get_filename_component(PRESET_NAME ${preset} NAME)
|
||||
configure_file(
|
||||
"${preset}"
|
||||
"${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/projectm-presets/"
|
||||
"${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/projectm-presets/${PRESET_NAME}"
|
||||
COPY_ONLY
|
||||
)
|
||||
endforeach (preset)
|
||||
|
@ -155,7 +155,7 @@ void CheckForUpdates() {
|
||||
QString GetBundlePath() {
|
||||
CFURLRef app_url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
|
||||
CFStringRef mac_path = CFURLCopyFileSystemPath(app_url, kCFURLPOSIXPathStyle);
|
||||
const char* path = CFStringGetCStringPtr(mac_path, kCFStringEncodingUTF8);
|
||||
const char* path = CFStringGetCStringPtr(mac_path, CFStringGetSystemEncoding());
|
||||
QString bundle_path = QString::fromUtf8(path);
|
||||
CFRelease(app_url);
|
||||
CFRelease(mac_path);
|
||||
|
Loading…
Reference in New Issue
Block a user