Node-webkit update resources from server?

Discussion and feedback on Construct 2

Post » Sat May 25, 2013 8:48 pm

@Joannesalfa

Yea. .Bat/.VBS are Windows exclusive scripting technologies. However, Linux and MacOSX feature similar batch scripting engines.

At least on MacOSX, it will be pretty easy to create an update script that will keep your old files. Node-Webkit for MacOSX simply copies and replaces existing files inside the .App container, while Node-Webkit for Linux and Windows concatenates two or more binary files.


As for multiplatform installer builders, you might want to take a look here.

http://en.wikipedia.org/wiki/List_of_installation_software#Cross-platform

@Ashley

Isn't the cross-domain issue still persistent with your Ajax implementation? Wouldn't be worth much if it didn't allow for cross-domain actions.
B
6
S
2
Posts: 206
Reputation: 1,685

Post » Sat May 25, 2013 10:38 pm

@Blinx123 The best way to do with AJAX and Browser, we upload our php file in the server to check app version, if is newer version, then check it's using windows, mac or Linux... If is window, then use Browser to Invoke download an installer for windows from URL of latest build.

It's pretty simple, isn't?
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Sun May 26, 2013 2:51 am

@Blinx123 - the cross-domain issue is easily solved by adding the Access-Control-Allow-Origin HTTP header.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests