diff --git a/CMakeLists.txt b/CMakeLists.txt index 23373a9..180bf8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ if (APPLE) # Set the SDK which the updater is built against. # The available SDK versions are those which exist in /Developer/SDKs/ - set(CMAKE_OSX_SDK 10.6) + set(CMAKE_OSX_SDK 10.7) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}") set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${CMAKE_OSX_SDK}.sdk") diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp index 6e707e4..a98fb51 100644 --- a/src/FileUtils.cpp +++ b/src/FileUtils.cpp @@ -120,7 +120,7 @@ int FileUtils::fileMode(const char* path) throw (IOException) void FileUtils::chmod(const char* path, int mode) throw (IOException) { #ifdef PLATFORM_UNIX - if (::chmod(path,mode) != 0) + if (::chmod(path,static_cast(mode)) != 0) { throw IOException("Failed to set permissions on " + std::string(path) + " to " + intToStr(mode)); } diff --git a/src/MacBundle.cpp b/src/MacBundle.cpp index 7722317..205869e 100644 --- a/src/MacBundle.cpp +++ b/src/MacBundle.cpp @@ -31,10 +31,10 @@ void MacBundle::create(const std::string& infoPlist, FileUtils::mkpath(binDir.c_str()); // create the Contents/Info.plist file - FileUtils::writeFile((contentDir + "/Info.plist").c_str(),infoPlist.c_str(),infoPlist.size()); + FileUtils::writeFile((contentDir + "/Info.plist").c_str(),infoPlist.c_str(),static_cast(infoPlist.size())); // save the icon to Contents/Resources/.icns - FileUtils::writeFile((resourceDir + '/' + m_appName + ".icns").c_str(),icon.c_str(),icon.size()); + FileUtils::writeFile((resourceDir + '/' + m_appName + ".icns").c_str(),icon.c_str(),static_cast(icon.size())); // copy the app binary to Contents/MacOS/ m_exePath = binDir + '/' + m_appName;