ANN: esky 0.2.1
by Ryan Kelly other posts by this author
Nov 7 2009 5:23AM messages near this date
Re: Serious Privileges Problem: Please Help
|
Re: ANN: esky 0.2.1
I'm pleased to announce the latest release of esky, a tool for keeping
your frozen apps fresh:
Downloads: http://pypi.python.org/pypi/esky/
Latest Version: 0.2.1
License: BSD
Esky is an auto-update framework for frozen python apps, built on top of
bbfreeze. It provides a simple API through which apps can find, fetch
and install updates, and a bootstrapping mechanism that keeps the app
safe in the face of failed or partial updates.
A frozen app that wants to auto-update itself might run the following in
a background thread:
if hasattr(sys,"frozen"):
app = esky.Esky(sys.executable,"http://myapp.com/downloads/")
new_version = app.find_update()
if new_version is not None:
app.install_update(new_version)
The new version of the application is linked into the app directory in
the safest possible manner: using a carefully-ordered sequence of
atomic renames on POSIX, using MoveFileTransacted on Windows Vista or
later, and using the "rename-and-pray" method on older versions of
Windows. Failed or partial updates are detected and cleaned up
automatically.
Enjoy!
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
ryan@[...].au | http://www.rfk.id.au/ramblings/gpg/ for details
Thread:
Ryan Kelly
Aahz
Aahz
Aahz
Ryan Kelly
Ryan Kelly
|