- Mac: Fix cefclient app package build and execution problems.

- Improve error message in ClientHandler::HandleLoadError.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@142 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2010-11-18 03:01:34 +00:00
parent 811a0ce08b
commit 227b9df643
4 changed files with 16 additions and 14 deletions

View File

@@ -109,7 +109,7 @@ CefHandler::RetVal ClientHandler::HandleLoadError(CefRefPtr<CefBrowser> browser,
ss << L"<html><head><title>Load Failed</title></head>"
L"<body><h1>Load Failed</h1>"
L"<h2>Load of URL " << failedUrl <<
L"failed with error code " << static_cast<int>(errorCode) <<
L" failed with error code " << static_cast<int>(errorCode) <<
L".</h2></body>"
L"</html>";
errorText = ss.str();

View File

@@ -0,0 +1,5 @@
#!/bin/sh
DIR=$(cd "$(dirname "$0")"; pwd)
export DYLD_FALLBACK_LIBRARY_PATH="$DIR:/lib:/usr/lib"
exec "$DIR/cefclient"

View File

@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<string>cefclient_mac_app.sh</string>
<key>CFBundleIconFile</key>
<string>cefclient.icns</string>
<key>CFBundleIdentifier</key>