On Feb 14, 2008, at 9:30 AM, Nate Lowrie wrote:
> This first part is more of a question than a concern since I don't use
> web update. If you roll a dabo app up through py2exe and still have
> web update enabled in the preferences, will it fail to update? As I
> understand it, the web update process works on the source files. Does
> it just ignore the update if being run as a compiled executable?
There is code in Web Update that will prevent it being run if the
environment is "frozen", such as in a py2exe-based app. I've added an
exception for the Dabo Runtime Engine, as it doesn't build the Dabo
source files into the exe.
> 1) Initial codebase compiled into py2exe, packaged into Inno Installer
> and given to customer. They install it. Codebase has a revision
> number hard coded in on compiling.
> 2) When the user runs the app, the hard coded revision number is
> stored into a preference.
> 3) I have an update, so I compile the updated code into py2exe and put
> the compiled exe into a folder on the server.
> 4) Update the CGI script with the new revision number for the latest
> version.
> 5) User runs app and app queries server. Server checks their revision
> number versus the latest revision number.
> 6) If there is a later revision, the server transfers the new compiled
> files to the user.
> 7) Update is complete, user restarts and app should be updated.
Unless this is a really small exe, it sounds like a huge effort to
repackage and download the whole enchilada when only one or two
scripts have changed. There is a commercial tool called 'RTPatch'
(http://www.pocketsoft.com/rtpatch.htm
) that does binary diffs, but I have no idea how much it costs. There
are other tools, some of the open source, but I've never used them.
Google for 'binary diff'.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]