Auto-update clients

14 views
Skip to first unread message

sil.li...@gmail.com

unread,
Oct 31, 2013, 6:08:39 PM10/31/13
to node-...@googlegroups.com
Has anyone approached the updating of packaged apps? Is there a node or a framework to pushing updates to people using your app?

Ewald Horn

unread,
Nov 8, 2013, 7:04:08 AM11/8/13
to node-...@googlegroups.com
I'm doing something that's probably going to be frowned upon, but I'm pulling my app from the server every time the user opens it. That way it's always updated. In fact, I cheat a little bit - I build my web application and then just suck the code into a Node Webkit client, with some modifications that happen on the fly. That way my "desktop" client and web client are always in perfect sync.  My applications is not usable offline, so it makes perfect sense in my case to do this.

Michael Winser

unread,
Nov 8, 2013, 7:24:26 AM11/8/13
to node-...@googlegroups.com
I like this approach a lot.  My use case isn't quite as always-online as yours but I've considered having a bootstrap app that explicitly loads and caches the rest.  The reason I haven't done it this way is that I still need to solve the more general update case of updating node-webkit and some custom OS-specific binaries that I've built.

I've settled on a simple semi-automatic updater.  I publish the app's package.json manifest to a specific URL and the application periodically checks that against the current manifest.  When an update is available the app prompts the user and then downloads and invokes an installer on Windows.  On the Mac the "installer" is a DMG file and we just open that on behalf of the user and let them drag it to an Applications link

It's not perfect but it's working well enough for now.

Michael


On Fri, Nov 8, 2013 at 7:04 AM, Ewald Horn <ewal...@gmail.com> wrote:
I'm doing something that's probably going to be frowned upon, but I'm pulling my app from the server every time the user opens it. That way it's always updated. In fact, I cheat a little bit - I build my web application and then just suck the code into a Node Webkit client, with some modifications that happen on the fly. That way my "desktop" client and web client are always in perfect sync.  My applications is not usable offline, so it makes perfect sense in my case to do this.

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ewald Horn

unread,
Nov 8, 2013, 8:05:26 AM11/8/13
to node-...@googlegroups.com
That sounds like a plan Michael.  Just out of interest, the Windows 8 store downloads incremental changes to applications, so it should quite well with Node WebKit. 

Keep me posted on this, I'm curious to see other solutions, thank you for the update.

sach...@gmail.com

unread,
Dec 5, 2013, 2:03:00 AM12/5/13
to node-...@googlegroups.com

Hi all,
i came across DynoSrc while browsing the net. its for javascript patching. Haven't studied it in depth. ... just sharing here.
 

Boyan O

unread,
Dec 16, 2013, 1:57:29 PM12/16/13
to node-...@googlegroups.com
Hi, guys
I prefer to do it Google Chrome like - with zero action required from user. App probably could download all files required and save them to disk(by replacing old ones), about node-webkit binary updates - maybe we can do it same way... or request some action from user, like go to node-webkit github page(not sure if that is a good idea, depends on the project). I wonder can we use github for this as hosting platform(or github.io?).

Regards,
Boyan

пятница, 8 ноября 2013 г., 14:24:26 UTC+2 пользователь michaelw написал:
Reply all
Reply to author
Forward
0 new messages