Skip to content

Commit e2bfa4b

Browse files
committed
Update README.md
From vercel#109
1 parent cc43bc9 commit e2bfa4b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,21 @@ Since Hazel routes all the traffic for downloading the actual application files
5757
5858
As an example, check out the [latest Hyper release](https://api.github.com/repos/vercel/hyper/releases/latest) and search for `mac.zip`. You'll find a release containing a sub property named `download_count` with the amount of downloads as its value.
5959
60+
## Release Files Naming And Extension
61+
62+
We find and cache releases for each platform by the file name and extension. it may be obvious but can save quite some times for those who just getting started.
63+
64+
As you can see in [platform.js](https://github.com/vercel/hazel/blob/master/lib/platform.js) and [aliases.js](https://github.com/vercel/hazel/blob/master/lib/aliases.js), for each OS, the extensions are expected as below:
65+
66+
| OS | :platform | .Extension |
67+
|--------------------------------|---------------------|---------------------------------------------------------|
68+
| Windows | win32, windows, win | .exe |
69+
| macOS | dmg | .dmg |
70+
| macOS | darwin | .zip (only if the file name contains "mac" or "darwin") |
71+
| Linux with RPM package manager | fedora | .rpm |
72+
| Linux with DEB package manager | debian | .deb |
73+
| Linux | appimage | .AppImage |
74+
6075
## Routes
6176
6277
### /

0 commit comments

Comments
 (0)