From 1adde15f4227d9edf2601cf25214e575a2772e91 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Wed, 26 Aug 2026 23:56:52 +0100 Subject: [PATCH] Fix the macOS download link 404ing publicDownloadUrl built the disk image URL from manifest.version, but the version carries a build suffix the release tag does not: version "1.0.0-alpha.3.app.59" lives under tag "1.0.0-alpha.3". Every macOS visitor was handed a 404. Derive it from the updater URL instead, rewriting only the filename so the tag comes from the release directory the manifest points at. --- docs/index.html | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/index.html b/docs/index.html index c0a7286..89ef3c8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -414,20 +414,18 @@ return ''; } - function publicDownloadUrl(manifest, platform, updaterUrl) { - if (platform.label !== 'macOS') { + function publicDownloadUrl(platform, updaterUrl) { + if (platform.label !== 'macOS' || !updaterUrl) { return updaterUrl; } - if (manifest.version) { - return 'https://github.com/visioncortex/vtracer/releases/download/' + - manifest.version + - '/VTracer_' + - manifest.version + - '_universal.dmg'; - } - - return updaterUrl.replace(/_universal\.app\.tar\.gz$/i, '_universal.dmg'); + // The manifest points at Tauri's updater bundle; a person wants the + // disk image sitting beside it. Rewrite only the filename, so the + // release tag comes from the URL we were handed: manifest.version + // carries a build suffix the tag does not, and building the URL from + // it 404s (version '1.0.0-alpha.3.app.59' lives under tag + // '1.0.0-alpha.3'). + return updaterUrl.replace(/\.app\.tar\.gz$/i, '.dmg'); } var platform = detectPlatform(); @@ -459,7 +457,7 @@ }) .then(function(manifest) { var updaterUrl = findPlatformDownload(manifest.platforms || {}, platform); - var downloadUrl = publicDownloadUrl(manifest, platform, updaterUrl); + var downloadUrl = publicDownloadUrl(platform, updaterUrl); if (!downloadUrl) { return;