mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-22 21:23:02 +01:00
* 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
15 lines
506 B
TypeScript
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)
|
|
}
|