@@ -23,7 +23,7 @@ const MAC_ARM = 'macOS (ARM, 64-bit)';
23
23
const Releases : FC = ( ) : ReactElement => {
24
24
const [ cacheTagName ] = useLocalStorageState < string > ( 'global-cache-tag-name' ) ;
25
25
const tagName = cacheTagName as string || 'v0.8.25' ;
26
- const DOWN_LINK = 'https://github.com/datafuselabs/ databend/releases/download /' ;
26
+ const DOWN_LINK = 'https://repo. databend.rs/databend /' ;
27
27
const [ releaseData , setReleaseData ] = useState < IRow [ ] > ( [
28
28
{
29
29
name : `databend-${ tagName } -aarch64-unknown-linux-musl.tar.gz` ,
@@ -88,8 +88,9 @@ const Releases: FC = (): ReactElement=> {
88
88
dataIndex : 'osType' ,
89
89
key : 'osType' ,
90
90
render ( o : string , record : IRow ) {
91
- const { browser_download_url} = record ;
92
- return < a className = { clsx ( 'button button--secondary' , styles . download ) } href = { `${ browser_download_url } ` } > Download</ a >
91
+ console . log ( record , 'record' )
92
+ const { tagName, name} = record ;
93
+ return < a className = { clsx ( 'button button--secondary' , styles . download ) } href = { `${ DOWN_LINK } ${ tagName } /${ name } ` } > Download</ a >
93
94
}
94
95
}
95
96
] ;
@@ -121,7 +122,8 @@ const Releases: FC = (): ReactElement=> {
121
122
item . osType = LINUX_GENERIC_ARM ;
122
123
}
123
124
}
124
- return ! item . name ?. includes ( 'linux-gnu' ) ;
125
+ const opName = item . name ;
126
+ return ! opName ?. includes ( 'linux-gnu' ) && ! opName ?. includes ( 'testsuites' ) ;
125
127
} )
126
128
?. sort ( ( a , b ) => {
127
129
return a . sort - b . sort ;
0 commit comments