issues
search
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
Fetch the release manifest
Check if manifest version > current version
Download the file from assetURL into a
temporary directory
Check if the file hash matches that of the release
Replace:
On macOS, the entire .app bundle
On Windows and Linux, just the currently running binary
References
https://github.com/rhysd/go-github-selfupdate/tree/master/selfupdate
https://github.com/anfragment/zen/blob/master/internal/autostart/autostart.go#L13
Self-update algorithm
References