

The same happens if the latest release doesn't contain a file for the specified platform. If the latest version of the application wasn't yet pulled from GitHub Releases, it will return the 204 status code.
#Where is the hazel app update
update/:platform/:versionĬhecks if there is an update available by reading from the cache.
#Where is the hazel app download
If the cache isn't filled yet or doesn't contain a download link for the specified platform, it will respond like /. I generally suggest using either atform ( more) or os.platform() ( more) to retrieve this string. download/:platformĪccepts a platform (like "darwin" or "win32") to download the appropriate copy your app for. The same happens if the latest release doesn't contain a file for the detected platform.
#Where is the hazel app code
If the latest version of the application wasn't yet pulled from GitHub Releases, it will return a message and the status code 404. downloadĪutomatically detects the platform/OS of the visitor by parsing the user agent and then downloads the appropriate copy of your application. Links to the repo, releases, specific cached version and direct downloads for each platform are present. Routes /ĭisplays an overview page showing the cached repository with the different available platforms and file sizes.

You'll find a release containing a sub property named download_count with the amount of downloads as its value. Since Hazel routes all the traffic for downloading the actual application files to GitHub Releases, you can use their API to determine the download count for a certain release.Īs an example, check out the latest Hyper release and search for mac.zip.
