11.05.2016

Pimcore as Desktop-Application

I don't know if you ever heard about Electron. Electron is, more or less, a Chromium in a Sandbox, that allows you to package your HTML, JS and CSS within an .app, .exe or binary Linux file and execute it as Desktop-Application. In fact, its more than that, but Electron is not the scope of this post ;) 

Since Electron uses Chromium, it also allows you to package your Web-Hosted-Application into a Desktop-Application. After researching a little bit, i found a tool that already does that, it is called Nativefier.

This is how it works:

Nativefier is a NodeJS Commandline Tool. It basically only takes one argument, your Applications Url. In my case it is http://demo.coreshop.org/admin. So the command looks like this:

nativefier demo.coreshop.org/admin

The result looks like this:

 

Not perfect yet. But with a few tweaks, you can make it better:

nativefier demo.coreshop.org/admin --name "CoreShop" --disable-context-menu -i coreshop-logo.png