Commit c19da89
patj
Wire download links directly to the latest release installers
os-detect.js -> downloads.js: after OS highlight, resolve the latest
release via the GitHub API and point every download link at the exact
installer asset (asset names carry the version, so we read them, not
guess URLs). Validated against real v26.7.1 assets — incl. separate
macOS Intel dmg.
- Per-variant links carry data-dl asset patterns; hero button + card
links get real browser_download_url; Windows stays on the MS Store
- 'v26.7.1' chip becomes live from the real latest tag (data-latest-tag)
- localStorage cache (1h) keeps well under GitHub's rate limit
- Graceful fallback: API failure/offline/artifact-CSP keeps the existing
/releases/latest links; no-JS still works
- CSP: add connect-src https://api.github.com
- build.py inlines downloads.js into the single-file artifact1 parent a08cc11 commit c19da89Copy full SHA for c19da89
5 files changed
+131-43Lines changed: 131 additions & 43 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- assets/js
- scripts
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
|
Collapse file
assets/js/downloads.js
Copy file name to clipboard+119Lines changed: 119 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
Collapse file
-31Lines changed: 0 additions & 31 deletions
This file was deleted.
Collapse file
+9-9Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
70 | | - |
| 70 | + |
71 | 71 | |
72 | 72 | |
73 | 73 | |
| ||
81 | 81 | |
82 | 82 | |
83 | 83 | |
84 | | - |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | 87 | |
| ||
295 | 295 | |
296 | 296 | |
297 | 297 | |
298 | | - |
299 | | - |
| 298 | + |
| 299 | + |
300 | 300 | |
301 | 301 | |
302 | 302 | |
303 | 303 | |
304 | 304 | |
305 | 305 | |
306 | 306 | |
307 | | - |
308 | | - |
| 307 | + |
| 308 | + |
309 | 309 | |
310 | 310 | |
311 | 311 | |
| ||
314 | 314 | |
315 | 315 | |
316 | 316 | |
317 | | - |
318 | | - |
| 317 | + |
| 318 | + |
319 | 319 | |
320 | 320 | |
321 | 321 | |
| ||
489 | 489 | |
490 | 490 | |
491 | 491 | |
492 | | - |
| 492 | + |
493 | 493 | |
494 | 494 | |
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
0 commit comments