diff --git a/src/constant/download.data.ts b/src/constant/download.data.ts index d40ac7c3de20e..83df811f0b45d 100644 --- a/src/constant/download.data.ts +++ b/src/constant/download.data.ts @@ -155,6 +155,46 @@ export type AllVersionOption = { }; export const ALL_VERSIONS: AllVersionOption[] = [ + { + label: '4.0', + value: '4.0', + children: [ + { + label: '4.0.0', + value: '4.0.0', + majorVersion: '4.0', + items: [ + { + label: CPUEnum.X64, + value: CPUEnum.X64, + gz: `${ORIGIN}apache-doris-4.0.0-bin-x64.tar.gz`, + asc: `${ORIGIN}apache-doris-4.0.0-bin-x64.tar.gz.asc`, + sha512: `${ORIGIN}apache-doris-4.0.0-bin-x64.tar.gz.sha512`, + source: 'https://dist.apache.org/repos/dist/release/doris/4.0/4.0.0/', + version: '4.0.0-rc02', + }, + { + label: CPUEnum.X64NoAvx2, + value: CPUEnum.X64NoAvx2, + gz: `${ORIGIN}apache-doris-4.0.0-bin-x64-noavx2.tar.gz`, + asc: `${ORIGIN}apache-doris-4.0.0-bin-x64-noavx2.tar.gz.asc`, + sha512: `${ORIGIN}apache-doris-4.0.0-bin-x64-noavx2.tar.gz.sha512`, + source: 'https://dist.apache.org/repos/dist/release/doris/4.0/4.0.0/', + version: '4.0.0-rc02', + }, + { + label: CPUEnum.ARM64, + value: CPUEnum.ARM64, + gz: `${ORIGIN}apache-doris-4.0.0-bin-arm64.tar.gz`, + asc: `${ORIGIN}apache-doris-4.0.0-bin-arm64.tar.gz.asc`, + sha512: `${ORIGIN}apache-doris-4.0.0-bin-arm64.tar.gz.sha512`, + source: 'https://dist.apache.org/repos/dist/release/doris/4.0/4.0.0/', + version: '4.0.0-rc02', + }, + ], + }, + ], + }, { label: '3.1', value: '3.1', @@ -164,7 +204,7 @@ export const ALL_VERSIONS: AllVersionOption[] = [ value: '3.1.1', majorVersion: '3.1', items: [ - { + { label: CPUEnum.X64, value: CPUEnum.X64, gz: `${ORIGIN}apache-doris-3.1.1-bin-x64.tar.gz`, @@ -225,7 +265,6 @@ export const ALL_VERSIONS: AllVersionOption[] = [ source: 'https://downloads.apache.org/doris/3.1/3.1.0/', version: '3.1.0', }, - ], }, ], diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx index 55e45a84b44b9..acb62fcc087a3 100644 --- a/src/pages/download/index.tsx +++ b/src/pages/download/index.tsx @@ -110,7 +110,10 @@ export default function Download() { setReleaseNote(`https://github.com/apache/doris/issues/${getIssueCode(values.version[1])}`); } else if (['3.0', '2.0'].includes(values.version[0])) { setReleaseNote(`/docs/${values.version[0]}/releasenotes/v${values.version[0]}/release-${values.version[1]}`); - } else { + } else if(values.version[0] === '4.0'){ + setReleaseNote(`/docs/dev/releasenotes/v${values.version[0]}/release-${values.version[1]}`) + } + else { setReleaseNote(`/docs/releasenotes/v${values.version[0]}/release-${values.version[1]}`); } }