hex/site/scripts/check-downloads.ts
Kit Langton 754666b06b
Windows Setup.exe, one site, and a download section that works (#166)
* feat(windows): a per-user Setup.exe installer for the managed layout

* feat(release): build, test, and publish Setup.exe installers and the GitHub download mirror

* fix(onboarding): name the tray on Windows and the background service on Linux; keep Apps & Features on the updated version

* feat(site): one site with a platform-aware download section; retire hex.kitlangton.com

* feat(site): prerender the page, add robots, sitemap, llms.txt, JSON-LD, and favicon.ico
2026-10-19 19:26:41 -07:00

15 lines
506 B
TypeScript

// Fails unless every download link on the site serves a file.
import { DOWNLOAD_URLS } from "../src/release"
const failures: string[] = []
await Promise.all(
DOWNLOAD_URLS.map(async (url) => {
const response = await fetch(url, { method: "HEAD", redirect: "follow" })
console.log(`${response.status} ${url}`)
if (!response.ok) failures.push(`${response.status} ${url}`)
}),
)
if (failures.length > 0) {
console.error(`Broken download links:\n${failures.join("\n")}`)
process.exit(1)
}