Page 2 of 2

Re: Auto Update

Posted: Thu Sep 05, 2013 4:17 pm
by gpearson
What I do in my application is my "Splash" Screen is the one that gets compiled as a standalone. This stack has code to check for internet connection, create sqlite database, check for an xml file on a website. It checks the difference between a custom property and the xml tag to see if a newer version is online. If it is, it downloads a zip file, extracts the file and runs another stack which is the main application. For my applications I have been naming them the application name.dat

In my zip file is just the updated stack of the main application and any other files that the stack would reference.

dabrowBUSXWKD wrote:Hi
I need advice on creating auto update system for my app.
I have stack "Main" with custom properties and Splash stack that will be compiled to standalone, and will check for if new vers. of app. is available , and download new "Main" . This can I do.
What next ? any tutorial with examples.
Something else that is the problem when I try to download "new Main" stack from my web site is not useful if I use main.livecode , I just can't download it. When I change file to main.rev it is better, I can download but file is corrupted. Do I have to build standalone with new "main" ? then upload it to server ?

How do you guys do it ?
Practical code/ stack example ?

Regards