ProjectM on mac deployment fixes.

This commit is contained in:
John Maguire 2010-06-07 11:38:43 +00:00
parent 48521823e3
commit d34283a113
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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);