DesktopGap for Windows

    During the trial swim in the territorial waters of HTML5 developers for the purpose of familiarization, I developed a small application. With the help of PhoneGap, it was successfully launched on the android, and possibly (not tested) on several more mobile platforms. But, unfortunately, PhoneGap does not collect applications for desktop OS (like something is under Mac OS). I decided to fix this omission for Windows.





    The task is not difficult, you need to create a window with a built-in browser. The solution suggests itself - WebControl, but I liked Webkit browsers a lot more during the development of the HTML5 application, so I decided not to use IE as a built-in browser. And since I had the least complaints about chrome , the choice fell on the chromiumembedded project. Yes, this solution has drawbacks, first of all, it is a significant amount of libraries that need to be pulled along with the application. The appendage to the installer is 16Mb. But it seems to me that this is an honest exchange of the installer size for compatibility, moreover, chromiumembedded is compatible with Mac OS and Linux.

    The project lies on github , for the VC setup project I prepared a .msm file , in which I collected all the necessary libraries for CEF. HTML and Javascript should be packed into a file called DesktopGap.zip and put (by the installer) in the application folder. To start, you need to run DesktopGap.exe, it is included in the .msm file.

    In the current version: 1) an icon is created in the system tray with a menu of two items, open and exit; 2) the window is minimized to tray with minimization; 3) HTML application is read from zip archive.

    The current version lacks: 1) parsing the configuration file (like PhoneGap), for example, in order to load the application icon; 2) the interaction between Javascript and the Win32 application, as a result, the absence of plugins like PhoneGap, for example, it would be logical to manage the menu in the system tray from Javascript.

    Also popular now: