Skip to content

Commit 324e58b

Browse files
committed
Add VisionFive 2 images support to download page
- Introduced mapping for VisionFive 2 version items in the download page. - Updated download options and links for VisionFive 2 images in the JSON data. - Added localization strings for VisionFive 2 images in English messages. - Extended TypeScript interfaces to include VisionFive 2 download options and links.
1 parent 5eb196e commit 324e58b

File tree

5 files changed

+65
-2
lines changed

5 files changed

+65
-2
lines changed

app/[locale]/download/page.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,35 @@ const DownloadPage = () => {
173173
: [],
174174
});
175175

176+
const mapVersionToVisionFive2VersionItem = (
177+
version: Version
178+
): VersionItem => ({
179+
versionName: version.versionName,
180+
versionId: version.versionId,
181+
currentVersion: version.currentVersion,
182+
plannedEol: version.plannedEol,
183+
downloadOptions: version.downloadOptions.visionfive2Images
184+
? [
185+
{
186+
label: `${t("cards.visionfive2Images.download")}`,
187+
link: version.downloadOptions.visionfive2Images.download,
188+
},
189+
]
190+
: [],
191+
links: version.links.visionfive2Images
192+
? [
193+
{
194+
name: `${t("cards.defaultImages.checksum")}`,
195+
link: version.links.visionfive2Images.checksum,
196+
},
197+
{
198+
name: `${t("cards.visionfive2Images.readMe")}`,
199+
link: version.links.visionfive2Images.readMe,
200+
},
201+
]
202+
: [],
203+
});
204+
176205
return (
177206
<>
178207
<div className="py-24 sm:py-32">
@@ -272,6 +301,17 @@ const DownloadPage = () => {
272301
)}
273302
/>
274303
) : null}
304+
{arch === "riscv64" ? (
305+
<DefaultImageCard
306+
title={t("cards.visionfive2Images.title")}
307+
titleTooltip={false}
308+
titleTooltipButtonLink=""
309+
titleTooltipButtonLabel=""
310+
versions={data.versions.map(
311+
mapVersionToVisionFive2VersionItem
312+
)}
313+
/>
314+
) : null}
275315
{arch === "x86_64" || arch === "aarch64" ? (
276316
<DefaultImageCard
277317
title={t("cards.wslImages.title")}

data/downloads.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@
440440
"container": {
441441
"fullImage": "https://hub.docker.com/r/rockylinux/rockylinux/tags?name=10.0",
442442
"minimalImage": "https://hub.docker.com/r/rockylinux/rockylinux/tags?name=10.0-minimal"
443+
},
444+
"visionfive2Images": {
445+
"download": "https://dl.rockylinux.org/pub/rocky/10/images/riscv64/Rocky-10-VisionFive2-10.0-20250602.0.riscv64.tar.xz"
443446
}
444447
},
445448
"links": {
@@ -451,6 +454,9 @@
451454
},
452455
"cloudImages": {
453456
"checksum": "https://dl.rockylinux.org/pub/rocky/10/images/riscv64/CHECKSUM"
457+
},
458+
"visionfive2Images": {
459+
"checksum": "https://dl.rockylinux.org/pub/rocky/10/images/riscv64/Rocky-10-VisionFive2-10.0-20250602.0.riscv64.tar.xz.CHECKSUM"
454460
}
455461
}
456462
}

messages/en-US.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@
258258
"title": "Windows Subsystem for Linux (WSL) Images",
259259
"download": "Download",
260260
"readMe": "README"
261+
},
262+
"visionfive2Images": {
263+
"title": "VisionFive 2 Images",
264+
"download": "Download",
265+
"readMe": "README"
261266
}
262267
},
263268
"getInvolved": {
@@ -267,7 +272,7 @@
267272
"exportCompliance": {
268273
"title": "Export Compliance/Customs Information",
269274
"text1": "By downloading Rocky Linux software, you acknowledge that you understand all of the following:",
270-
"text2": "Rocky Linux software and technical information may be subject to the U.S. Export Administration Regulations (the EAR) and other U.S. and foreign laws and may not be exported, re-exported or transferred (a) to a prohibited destination country under the EAR or U.S. sanctions regulations (currently Cuba, Iran, North Korea, Sudan, Syria, and the Crimea Region of Ukraine, subject to change as posted by the United States government); (b) to any prohibited destination or to any end user who has been prohibited from participating in U.S. export transactions by any federal agency of the U.S. government; or (c) for use in connection with the design, development or production of nuclear, chemical or biological weapons, or rocket systems, space launch vehicles, or sounding rockets, or unmanned air vehicle systems.",
275+
"text2": "Rocky Linux software and technical information may be subject to the U.S. Export Administration Regulations (the \"EAR\") and other U.S. and foreign laws and may not be exported, re-exported or transferred (a) to a prohibited destination country under the EAR or U.S. sanctions regulations (currently Cuba, Iran, North Korea, Sudan, Syria, and the Crimea Region of Ukraine, subject to change as posted by the United States government); (b) to any prohibited destination or to any end user who has been prohibited from participating in U.S. export transactions by any federal agency of the U.S. government; or (c) for use in connection with the design, development or production of nuclear, chemical or biological weapons, or rocket systems, space launch vehicles, or sounding rockets, or unmanned air vehicle systems.",
271276
"narrative": "Rocky Linux in source code and binary code form is publicly available and is not subject to the EAR in accordance with §740.17(b)(1).",
272277
"product_title": "Product",
273278
"product_text": "Rocky Linux. Includes Rocky Linux Project \"Special Interest Group\" repositories.",

messages/en.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@
258258
"title": "Windows Subsystem for Linux (WSL) Images",
259259
"download": "Download",
260260
"readMe": "README"
261+
},
262+
"visionfive2Images": {
263+
"title": "VisionFive 2 Images",
264+
"download": "Download",
265+
"readMe": "README"
261266
}
262267
},
263268
"getInvolved": {
@@ -267,7 +272,7 @@
267272
"exportCompliance": {
268273
"title": "Export Compliance/Customs Information",
269274
"text1": "By downloading Rocky Linux software, you acknowledge that you understand all of the following:",
270-
"text2": "Rocky Linux software and technical information may be subject to the U.S. Export Administration Regulations (the EAR) and other U.S. and foreign laws and may not be exported, re-exported or transferred (a) to a prohibited destination country under the EAR or U.S. sanctions regulations (currently Cuba, Iran, North Korea, Sudan, Syria, and the Crimea Region of Ukraine, subject to change as posted by the United States government); (b) to any prohibited destination or to any end user who has been prohibited from participating in U.S. export transactions by any federal agency of the U.S. government; or (c) for use in connection with the design, development or production of nuclear, chemical or biological weapons, or rocket systems, space launch vehicles, or sounding rockets, or unmanned air vehicle systems.",
275+
"text2": "Rocky Linux software and technical information may be subject to the U.S. Export Administration Regulations (the \"EAR\") and other U.S. and foreign laws and may not be exported, re-exported or transferred (a) to a prohibited destination country under the EAR or U.S. sanctions regulations (currently Cuba, Iran, North Korea, Sudan, Syria, and the Crimea Region of Ukraine, subject to change as posted by the United States government); (b) to any prohibited destination or to any end user who has been prohibited from participating in U.S. export transactions by any federal agency of the U.S. government; or (c) for use in connection with the design, development or production of nuclear, chemical or biological weapons, or rocket systems, space launch vehicles, or sounding rockets, or unmanned air vehicle systems.",
271276
"narrative": "Rocky Linux in source code and binary code form is publicly available and is not subject to the EAR in accordance with §740.17(b)(1).",
272277
"product_title": "Product",
273278
"product_text": "Rocky Linux. Includes Rocky Linux Project \"Special Interest Group\" repositories.",

types/downloads.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export interface DownloadOptions {
4444
wslImages?: {
4545
download: string;
4646
};
47+
visionfive2Images?: {
48+
download: string;
49+
};
4750
}
4851

4952
export interface Links {
@@ -67,6 +70,10 @@ export interface Links {
6770
checksum: string;
6871
readMe: string;
6972
};
73+
visionfive2Images?: {
74+
checksum: string;
75+
readMe: string;
76+
};
7077
}
7178

7279
export interface Version {

0 commit comments

Comments
 (0)