Commit 16968f5
committed
feat: merge download page into homepage with client-side arch detection
Serve an HTML download page at GET / using UA Client Hints API
(navigator.userAgentData.getHighEntropyValues) to auto-detect Windows
ARM64 vs x64. The legacy User-Agent string is unreliable because
Chrome/Edge on ARM64 reports "x64". When ?arch= is provided, the
endpoint still returns a 302 redirect for CLI/curl compatibility.
- Delete routes/download.ts, merge into routes/index.ts
- Rename tests/download.test.ts to tests/index.test.ts
- Update README to reflect unified endpoint1 parent a9db3f1 commit 16968f5
4 files changed
Lines changed: 343 additions & 214 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
This file was deleted.
0 commit comments