Packaging a web app as a desktop app
Asked Answered
G

4

11

OK so being a web programmer I'm building an ajax app, but my problem is that my target market isn't going to want it as a web app, they'll want it on their desktop with local file access, and possibly some optional cloud features and a sister phone app.

So I've played around with Titanium and Air and both come up very short compared to running it straight off my local server in a browser.

  • The Titanium build runs very slow. And its only really very small at this stage (126kb of code including jquery.js). Even the css:hover lags a second behind! And besides the documentation is mainly just placeholders telling you that there is no documentation for desktop. Their demo kitchen sink application doesn't even run properly, unless of course their whole desktop feature set is just an empty white background!

  • Adobe Air makes a dogs breakfast out of it. Even though it works like a treat in Chrome, Air won't run any of my scripts and renders it like I'm making cubist art. No offence to any cubists out there.

So my question is, what are the options for a javascript/php programmer in embedding a small server into an ssb and running it that way?

Glanti answered 22/2, 2011 at 22:9 Comment(1)
@CzarekTomczak, why haven't you provided this comment as an answer? Tried it, seems like a good solution so far.Crudden
W
3

Most popular way to do what you are doing is to embed a Web Server in your Application. Jetty is very popular for this, it is what Google uses for its local deployment to your local machine for testing for GWT and GAE. Then just have a way to start up the server, and launch the default web browser pointing to that server and port you are running.

Weaverbird answered 23/2, 2011 at 4:28 Comment(1)
Thanks! I took a look at their website and it looks great, I'll definitely try that out!Glanti
M
2

I know this thread is aging, but I'm looking to achieve something similar and the soon to be released TideSDK seems to be worth looking into.

Minority answered 3/10, 2012 at 16:11 Comment(2)
Looking over their site they only support windows 8, mac, and linux. This looks like it might work ok as long as you don't need to support vista or windows 7.Rockyrococo
Looking a their wiki page, it's looks like they support (or plan to support) Windows XP to Windows 8.Minority
A
0

You can have a look at Nativefier. It is a nodeJs package that internally uses electron to create a platform specific native application for the web app.

Annabelleannabergite answered 15/4, 2017 at 12:45 Comment(0)
M
-5

Some quick solutions for you:

  • Adobe Air (Javascript)
  • Titanium (Python, PHP)

... I have some more names in my mind, but have to search for them.

Maxiemaxilla answered 23/2, 2011 at 13:13 Comment(1)
Thanks, but if you read the content of my post you would see that I tried those and found them to not play very nice with my code.Glanti

© 2022 - 2024 — McMap. All rights reserved.