How to auto update a Python desktop app

PyInstaller, Nuitka and Briefcase turn your Python code into an app, and none of the free ones update it afterwards. Here are the options that are maintained today, with working code, the ones to avoid, and how to send updates only to licensed customers.

A coiled rope with a fresh length being spliced onto its end

When you freeze a Python app with PyInstaller, you get a folder or an executable that your customers can run without installing Python. What you don't get is a way to replace it when you ship version 1.1. PyInstaller's documentation doesn't mention updating at all, and neither does Briefcase's. Updating is left to you.

There are three sensible ways to do it today, and a few once-popular libraries that have been abandoned. Everything here was checked against each project's own repository, documentation and PyPI page on November 19, 2026.

The options

What it is Latest release Status
Velopack Installer and updater with a Python library 1.2.161, September 2026 Active
tufup Updater built on The Update Framework 0.10.0, October 2025 Quiet for a year, not archived
Your own check A version endpoint plus your installer n/a Yours to maintain
Nuitka Commercial Paid compiler with built-in updates n/a Active, paid
PyUpdater Older updater for PyInstaller apps 4.0, April 2021 Archived
Esky Older freezer-agnostic updater 0.9.9, September 2015 Archived, unmaintained
pywinsparkle Python wrapper for WinSparkle 1.6.0, April 2019 Dormant, wraps WinSparkle 0.6.0

The short version:

  • Starting fresh and want an installer and background updates in one tool: Velopack
  • Want signed update metadata and binary patches without a .NET build tool: tufup
  • Already ship an Inno Setup or NSIS installer you like: write the check yourself and run the new installer
  • Don't start anything new on PyUpdater or Esky. Both repositories are archived, and PyUpdater's README opens with "This is the end"

Why a Python app can't simply overwrite itself

Two things get in the way, and every tool below is a way around them.

Windows won't let you replace files that are in use. Microsoft's documentation on the Restart Manager puts it plainly: updates need restarts because "some of the files that are being updated are currently being used by a running application". Your running .exe and the DLLs it loaded are exactly those files. So the update has to be applied by something that isn't your app: a separate process, a script, or an installer that runs after your app exits.

One-file mode hides where your app lives. A PyInstaller one-file executable unpacks itself into a temporary folder named _MEIxxxxxx each time it starts, and deletes that folder when it exits. There's nothing stable on disk to patch except the single executable, which is running. One-folder mode (--onedir) gives you a real directory of files, and it's what both Velopack and tufup expect.

Inside a frozen app, PyInstaller sets sys.frozen, and sys.executable is the path to the program the user launched. That's how your update code finds where it's installed:

import sys
from pathlib import Path

if getattr(sys, "frozen", False):
    install_dir = Path(sys.executable).parent

Option 1: Velopack

Velopack is an open source (MIT) installer and updater with libraries for several languages, and its documentation lists Python as ready. It builds your installer, installs the app per user without an admin prompt, and applies updates with delta packages.

Install the library and call it first thing in your main module:

import velopack

if __name__ == "__main__":
    # Velopack needs to be the first thing to run in the main process.
    # In some cases, it might quit/restart the process to perform tasks.
    velopack.App().run()

Then check for updates wherever suits your app, for example from a menu item or a few seconds after startup:

def update_app():
    manager = velopack.UpdateManager("https://updates.myapp.com/releases")

    update_info = manager.check_for_updates()
    if not update_info:
        return  # no updates available

    manager.download_updates(update_info)
    manager.apply_updates_and_restart(update_info)

Build with PyInstaller in one-folder mode, then pack the output:

pyinstaller --onedir app.py
dotnet tool install -g vpk
vpk pack --packId YourAppId --packVersion 1.0.0 --packDir .\dist\app --mainExe app.exe

Velopack's documentation is explicit about the first line: use --onedir, because the single executable from --onefile "is not compatible". The vpk tool needs the .NET SDK on your build machine. Your customers don't need .NET.

The output is a Setup.exe, full and delta packages, and a feed file. Upload the folder to any static host and point UpdateManager at it.

Option 2: tufup

tufup describes itself as "a simple software updater for stand-alone Python applications". It's built on python-tuf, the reference implementation of The Update Framework, so the update metadata is signed and the client refuses anything that doesn't verify. It works with archives of your app folder and binary patches between versions, and falls back to a full download when the patches would be bigger.

The client side:

from tufup.client import Client

client = Client(
    app_name="myapp",
    app_install_dir=install_dir,
    current_version="1.0",
    metadata_dir=metadata_dir,
    metadata_base_url="https://updates.myapp.com/metadata/",
    target_dir=target_dir,
    target_base_url="https://updates.myapp.com/targets/",
)

if client.check_for_updates():
    client.download_and_apply_update()

Your app has to ship with a trusted root.json file, which the repository tools create. On your build machine:

tufup init
tufup targets add 1.0 dist/myapp keystore

Run the second command for each new version, then upload the metadata and targets folders to your server.

What to know before you choose it:

  • It isn't an installer. tufup updates an installed app. The first install is up to you
  • It exits after updating and doesn't relaunch. On Windows it writes a temporary batch file that copies the new files in with robocopy after your app quits. You can supply your own install step
  • It's aimed at Windows and macOS
  • Releases are slow. The last one, 0.10.0, was in October 2025, and GitHub marks it as a pre-release. The repository isn't archived
  • It can authenticate. The client takes a session_auth argument with a username and password, or a requests auth object, per server

Option 3: Write the check yourself

If you already have an installer, the smallest update system is: ask a server for the latest version, compare, download the new installer, verify it, run it, and exit.

import base64, hashlib, subprocess, sys, tempfile
from pathlib import Path

import requests
from packaging.version import Version

FEED = "https://updates.myapp.com/latest.json"

def check_for_update(current_version):
    release = requests.get(FEED, timeout=10).json()
    if Version(release["version"]) <= Version(current_version):
        return None
    return release

def download_and_run(release):
    path = Path(tempfile.gettempdir()) / release["filename"]
    digest = hashlib.sha512()
    with requests.get(release["url"], stream=True, timeout=60) as r:
        r.raise_for_status()
        with open(path, "wb") as f:
            for chunk in r.iter_content(1 << 20):
                digest.update(chunk)
                f.write(chunk)

    if base64.b64encode(digest.digest()).decode() != release["sha512"]:
        path.unlink()
        raise RuntimeError("Update failed verification")

    subprocess.Popen([str(path), "/SILENT", "/SP-", "/CLOSEAPPLICATIONS"])
    sys.exit(0)

The last two lines are the important part: start the installer as a separate process and exit, so the installer can replace your files. The switches shown are Inno Setup's. The page on Inno Setup and NSIS auto updates covers the installer side.

Three rules if you go this way:

  1. Compare versions properly. "1.10" > "1.9" is false as strings. Use packaging.version.Version
  2. Verify what you downloaded against a hash from your feed, over HTTPS, before you run it
  3. Sign the installer. A checksum proves the download matches the feed. An Authenticode signature, added with SignTool, is what Windows and SmartScreen check

Nuitka, Briefcase and one-file builds

  • Nuitka. The open source compiler has no updater. Nuitka Commercial lists automatic updates as a feature, currently for its onefile mode
  • Briefcase. Its briefcase update command updates your project's code at build time. The documentation doesn't describe any way to update an installed app, so pair it with one of the options above, or on macOS with Sparkle
  • PyInstaller one-file. It works with the hand-written approach, because an installer replaces the single executable after your app exits. It doesn't work with Velopack or tufup

macOS

On a Mac, the app you ship has to be signed with a Developer ID certificate and notarized, and an update that changes files inside the bundle has to leave it with a valid signature. In practice that means replacing the whole .app with a new signed one, never patching files inside it. If users report that your app "is damaged" after an update, the page on the "app is damaged" message explains how to check what broke.

Updates only for licensed customers

If you sell your app, you may want updates to follow the license: a lapsed subscription or a refunded order stops receiving new versions. That takes a server that knows who's asking.

LicenseSeat provides one. You upload each release, and it hosts the files and serves a JSON endpoint with the latest version for your product:

curl https://licenseseat.com/p/<product-slug>/latest

The response has the version, release notes, and a list of artifacts, each with a platform, a url and a base64 sha512. From Python:

FEED = "https://licenseseat.com/p/<product-slug>/latest"

def check_for_update(current_version, license_key):
    r = requests.get(FEED, headers={"Authorization": f"Bearer {license_key}"}, timeout=10)
    if r.status_code == 404:
        return None  # nothing this license is entitled to
    release = r.json()
    if Version(release["version"]) <= Version(current_version):
        return None
    return next(a for a in release["artifacts"] if a["platform"] == "windows")

Send the same header when you download the artifact. With the feed set to licensed, a request without a valid license key gets no release, and the version the customer has keeps working. A license whose year of updates has ended is still offered every release published before it ended.

There's no official Python SDK yet. Activation and validation are plain HTTPS calls, described in the licensing API guide. LicenseSeat charges a flat monthly fee and takes 0% of your revenue.

Common questions about updating Python apps

Does PyInstaller support auto updates?

No. PyInstaller bundles your app and stops there. Its documentation has no update mechanism, so you add one with Velopack, tufup or your own code.

Is PyUpdater still maintained?

No. The repository is archived, the last release was 4.0 in April 2021, and the README says the author has stopped. Don't start a new project on it.

What replaced PyUpdater?

tufup is the closest in spirit: an updater for frozen Python apps with signed metadata. Velopack is the more complete option, because it also builds the installer.

Can a PyInstaller one-file app update itself?

Not by patching. The executable is in use while it runs, and its files are unpacked to a temporary folder each launch. Download a new installer or executable, start it as a separate process, and exit.

Can a running exe replace itself on Windows?

Not directly. Windows won't overwrite or delete a file that's in use. Every updater works around this with a second process that swaps the files after the app has exited.

Does Velopack work with Python?

Yes. Velopack publishes a velopack package on PyPI and its documentation lists Python as ready. Build with PyInstaller's one-folder mode and pack the output with vpk.

How do I update a Python app on macOS?

Replace the whole signed and notarized .app bundle. For apps with a native Mac shell, Sparkle is the standard updater. Velopack also targets macOS.

Do I need a server for Python app updates?

No. Velopack and tufup both read static files you can host anywhere. You need a server that answers per request only when the update should depend on who's asking, as with licensed updates.