Retire the 1.0.0 installer and take dead macOS links off the site

Deleting the old Windows build from R2 surfaced something worse: the
two macOS DMG links had no objects behind them at all - the mac builds
were never uploaded, so every mac download click has been a 404.

- R2 now holds exactly one desktop artifact: AC/AgentCompany-1.1.0-x64
  .exe (old exe deleted on operator instruction, verified 404)
- The release manifest drops the macOS entry with a comment explaining
  how it comes back (upload real DMGs first); footer mac links removed;
  hero reads "Available on Windows - macOS build coming soon"
- Root fix in platform-support: FAQ/JSON-LD copy now derives from
  whatever platforms the manifest actually ships instead of
  hard-requiring macos+windows, so the site structurally cannot
  advertise a platform without a real artifact behind it
- Landing e2e updated (>=1 tracked asset) and green; redeployed and
  verified live: no r2.dev leaks, no mac links, coming-soon copy shown,
  tracked download 302s to the 1.1.0 installer
This commit is contained in:
ZacharyZhang-NY committed 2026-07-09 00:54:19 -04:00
1 parent a489accc38
commit c027508b97
5 files changed
+25 -37

No files matched your search

+17 -10
View File
@@ -14,26 +14,33 @@ export type PlatformSupportSummary = {
export const platformSupportSummary = buildPlatformSupportSummary(platformDownloads);
/**
* Copy derives from whatever platforms the release manifest actually ships,
* so the download matrix stays the single source of truth and the site can
* never advertise a platform without a real artifact behind it.
*/
export function buildPlatformSupportSummary(downloads: PlatformDownload[]): PlatformSupportSummary {
const macos = requirePlatform(downloads, "macos");
const windows = requirePlatform(downloads, "windows");
if (downloads.length === 0) {
throw new Error("Release download metadata must include at least one platform.");
}
return {
downloadAnswer:
`Use the download section on this page to choose the build that matches your architecture and package format. ` +
`${formatDownloadSentence(macos)} ${formatDownloadSentence(windows)}`,
downloads.map(formatDownloadSentence).join(" "),
platformAnswer:
`AgentCompany is available on ${formatAvailability(macos)} and ${formatAvailability(windows)}. ` +
`AgentCompany is available on ${joinWithAnd(downloads.map(formatAvailability))}. ` +
`It is built with Electron and the desktop feature set stays aligned across all supported targets.`,
};
}
function requirePlatform(downloads: PlatformDownload[], id: PlatformDownload["id"]): PlatformDownload {
const platform = downloads.find((download) => download.id === id);
if (!platform) {
throw new Error(`Missing ${id} release download metadata.`);
function joinWithAnd(parts: string[]): string {
if (parts.length === 1) {
return parts[0];
}
return platform;
if (parts.length === 2) {
return `${parts[0]} and ${parts[1]}`;
}
return `${parts.slice(0, -1).join(", ")}, and ${parts.at(-1)}`;
}
function formatDownloadSentence(download: PlatformDownload): string {