fix(release): point the download centers at the published installer
Some checks failed
deploy-site / deploy (push) Failing after 52s

The download contract on both the web console and the landing site still
advertised 1.2.0, so the install button pointed at
D3RO-Voice-Setup-1.2.0-x64.exe, which the feed answers with 404 while 1.3.7
is live. Wire both contract files into version:sync so the installer version
and release date follow the version SSOT, and set them to the published 1.3.7.

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4.1-flash
This commit is contained in:
Yun Chan 2026-09-19 08:41:37 +09:00
parent f741999859
commit ee1deb64cf
5 changed files with 29 additions and 4 deletions

View file

@ -180,6 +180,28 @@ updateText('apps/web/src/components/layout/sidebar.tsx', (text) =>
),
)
// Download centers build the installer filename from these constants. They drifted
// to 1.2.0 while the feed served newer versions, so the download button pointed at
// an installer that does not exist. Keep both surfaces on the version SSOT.
for (const releaseContractPath of [
'apps/web/src/lib/desktop-release.ts',
'site/src/release.ts',
]) {
updateText(releaseContractPath, (text) =>
replaceExactlyOnce(
replaceExactlyOnce(
text,
/export const DESKTOP_VERSION = '[^']+'/,
`export const DESKTOP_VERSION = '${metadata.version}'`,
`${releaseContractPath} desktop version`,
),
/export const DESKTOP_RELEASE_DATE = '[^']+'/,
`export const DESKTOP_RELEASE_DATE = '${metadata.releaseDate}'`,
`${releaseContractPath} desktop release date`,
),
)
}
const changelog = readFileSync(join(root, 'CHANGELOG.md'), 'utf8')
if (!new RegExp(`^## \\[${escapeRegExp(metadata.version)}\\] - ${metadata.releaseDate}$`, 'm').test(changelog)) {
fail(`CHANGELOG.md is missing [${metadata.version}] - ${metadata.releaseDate}.`)