anfragment / zen

Simple, free and efficient ad-blocker and privacy guard for Windows, macOS and Linux
https://zenprivacy.net
MIT License
2.39k stars 60 forks source link

First party implementation of release fetching and unpacking #91

Closed anfragment closed 1 week ago

anfragment commented 4 months ago

Self-update algorithm

  1. Fetch the release manifest
  2. Check if manifest version > current version
  3. Download the file from assetURL into a temporary directory
  4. Check if the file hash matches that of the release
  5. Replace:
    • On macOS, the entire .app bundle
    • On Windows and Linux, just the currently running binary

References