CEF Desktop Application Deployment on Windows

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF Desktop Application Deployment on Windows

Postby JGK » Fri Jan 17, 2014 4:05 pm

Is there a good way in which to package CEF desktop application files for deployment on Windows?
For example; a way to package all of the DLL's, HTML5, JS, etc. into a single EXE?
The main goal is to not expose the web related, non-binary files to the end user.
JGK
Newbie
 
Posts: 3
Joined: Fri Jan 17, 2014 3:25 pm

Re: CEF Desktop Application Deployment on Windows

Postby magreenblatt » Fri Jan 17, 2014 4:28 pm

You can place your web resources in a zip archive and use the CefZipArchive class to load them. The archive can be either a binary resource compiled in your application or a separate file on disk (choose any extension you like). The whole application can then be packaged as an executable or windows installer. See viewtopic.php?f=6&t=3564#p7135 for related conversation.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Desktop Application Deployment on Windows

Postby JGK » Mon Jan 20, 2014 5:19 pm

Great help. Thanks.

I am a little unclear as to the "scheme handler" and "manifset" mentioned in the viewtopic.php?f=6&t=3564#p7135 link.
For example, once I load my embedded ZIP resource and use CefZipReader, what is the stuff that actually
executes my index.html?
JGK
Newbie
 
Posts: 3
Joined: Fri Jan 17, 2014 3:25 pm

Re: CEF Desktop Application Deployment on Windows

Postby magreenblatt » Mon Jan 20, 2014 5:47 pm

Implement CefRequestHandler::GetResourceHandler to return a CefResourceHandler instance. A simple implementation is provided by CefStreamResourceHandler in combination with the CefStreamReader returned by CefZipArchive::File.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Desktop Application Deployment on Windows

Postby JGK » Thu Jan 23, 2014 2:57 pm

Thanks.
One more somewhat related question:
How do PAK files come into play?
Are they mainly used to house CEF internal resources and
not meant to be used for packaging application resources?
JGK
Newbie
 
Posts: 3
Joined: Fri Jan 17, 2014 3:25 pm

Re: CEF Desktop Application Deployment on Windows

Postby magreenblatt » Thu Jan 23, 2014 5:26 pm

JGK wrote:Thanks.
One more somewhat related question:
How do PAK files come into play?
Are they mainly used to house CEF internal resources and
not meant to be used for packaging application resources?

Correct, they're created when CEF is compiled and contain CEF/Chromium/Blink resources. You can use the same format for your application resources if you want by downloading the tools and borrowing some code from Chromium, but there are probably better alternatives. More information at https://code.google.com/p/grit-i18n/.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 223 guests