-
-
- {getOSDisplayName(selectedOS)} • v{currentRelease.version}
-
-
- Released{" "}
- {RELEASE_DATE_FORMAT.format(
- new Date(currentRelease.publishedAt),
- )}
-
- {bestAsset && (
-
- {bestAsset.name} • {formatFileSize(bestAsset.size)}
-
+
{getOSDisplayName(os)}
+ {isDetected && (
+
Detected
+ )}
+ {!isAvailable && (
+
Not Available
)}
-
- {bestAsset ? (
- handleDownload(bestAsset)}
- className="text-small px-8 py-4 rounded-lg bg-gradient-to-r from-blue-500 to-blue-600 text-white border-white"
- rippleColor="rgba(255, 255, 255, 0.5)"
- >
-
- Download
-
- ) : (
-
- No assets
-
+
+ );
+ })}
+
+
+ {/* Separates picking an OS from the release it resolves to, so the
+ caveat lands on the build about to be downloaded. */}
+ {hasPreReleaseVersion ? (
+
+
+
{PRE_RELEASE_DISCLAIMER}
+
+ ) : (
+
+ )}
+
+ {/* Release Download */}
+ {currentRelease ? (
+
+
+
+
+ {getOSDisplayName(selectedOS)} • v{currentRelease.version}
+
+
+ Released{" "}
+ {RELEASE_DATE_FORMAT.format(
+ new Date(currentRelease.publishedAt),
)}
+
+ {bestAsset && (
+
+ {bestAsset.name} • {formatFileSize(bestAsset.size)}
+
+ )}
+
+
+ {bestAsset ? (
window.open(currentRelease.htmlUrl, "_blank")}
- className="text-small px-8 py-4 rounded-lg text-cyan-400 border-cyan-400"
+ onClick={() => handleDownload(bestAsset)}
+ className="text-small px-8 py-4 rounded-lg bg-gradient-to-r from-blue-500 to-blue-600 text-white border-white"
+ rippleColor="rgba(255, 255, 255, 0.5)"
>
- View Release
+
+ Download
-
+ ) : (
+
+ No assets
+
+ )}
+
window.open(currentRelease.htmlUrl, "_blank")}
+ className="text-small px-8 py-4 rounded-lg text-cyan-400 border-cyan-400"
+ >
+ View Release
+
- ) : (
-
- No release available for {getOSDisplayName(selectedOS) || "this OS"}
- .
-
- )}
-
- {/* Footer */}
-
+ ) : (
+
+ No release available for {getOSDisplayName(selectedOS) || "this OS"}.
+
+ )}
+
+ {/* Footer */}
+
- >
+