@@ -31,7 +31,7 @@ function dismiss(panel: HTMLElement, fromDownload = false): void {
3131 panel . addEventListener ( 'transitionend' , ( ) => panel . remove ( ) , { once : true } ) ;
3232}
3333
34- type Platform = 'macos-arm64' | 'macos-x64' | 'macos' | 'windows' | 'linux' | 'unknown' ;
34+ type Platform = 'macos-arm64' | 'macos-x64' | 'macos' | 'windows' | 'linux' | 'linux-x64' | 'linux-arm64' | ' unknown';
3535
3636function detectPlatform ( ) : Platform {
3737 const ua = navigator . userAgent ;
@@ -64,7 +64,8 @@ function allButtons(): DlButton[] {
6464 { cls : 'mac' , href : '/api/download?platform=macos-arm64' , label : `\uF8FF ${ t ( 'modals.downloadBanner.macSilicon' ) } ` } ,
6565 { cls : 'mac' , href : '/api/download?platform=macos-x64' , label : `\uF8FF ${ t ( 'modals.downloadBanner.macIntel' ) } ` } ,
6666 { cls : 'win' , href : '/api/download?platform=windows-exe' , label : `\u229E ${ t ( 'modals.downloadBanner.windows' ) } ` } ,
67- { cls : 'linux' , href : '/api/download?platform=linux-appimage' , label : `\u{1F427} ${ t ( 'modals.downloadBanner.linux' ) } ` } ,
67+ { cls : 'linux' , href : '/api/download?platform=linux-appimage' , label : `\u{1F427} ${ t ( 'modals.downloadBanner.linux' ) } (x64)` } ,
68+ { cls : 'linux' , href : '/api/download?platform=linux-appimage-arm64' , label : `\u{1F427} ${ t ( 'modals.downloadBanner.linux' ) } (ARM64)` } ,
6869 ] ;
6970}
7071
@@ -76,6 +77,8 @@ function buttonsForPlatform(p: Platform): DlButton[] {
7677 case 'macos' : return buttons . filter ( b => b . cls === 'mac' ) ;
7778 case 'windows' : return buttons . filter ( b => b . cls === 'win' ) ;
7879 case 'linux' : return buttons . filter ( b => b . cls === 'linux' ) ;
80+ case 'linux-x64' : return buttons . filter ( b => b . href . includes ( 'linux-appimage' ) && ! b . href . includes ( 'arm64' ) ) ;
81+ case 'linux-arm64' : return buttons . filter ( b => b . href . includes ( 'linux-appimage-arm64' ) ) ;
7982 default : return buttons ;
8083 }
8184}
0 commit comments