合并安卓下载和其他平台的下载链接

This commit is contained in:
vayfou
2026-02-21 20:00:19 +08:00
committed by GitHub
parent d1e3d6a5ef
commit 92a8987a86

View File

@@ -3016,37 +3016,15 @@ export const UserMenu: React.FC = () => {
</p>
<div className='flex flex-wrap gap-2'>
<a
href='https://github.com/mtvpls/MoonTVPlus/releases/tag/Selene_Beta4'
href='https://github.com/mtvpls/Selene-Build/releases'
target='_blank'
rel='noopener noreferrer'
className='inline-flex items-center gap-2 px-4 py-2 bg-green-500 hover:bg-green-600 text-white text-sm font-medium rounded-lg transition-colors'
>
<Download className='w-4 h-4' />
<ExternalLink className='w-3 h-3' />
</a>
<button
onClick={() => {
const ua = navigator.userAgent.toLowerCase();
let targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
// 根据 UA 判断平台
if (ua.includes('windows')) {
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
} else if (ua.includes('mac')) {
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
} else if (ua.includes('linux')) {
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
}
window.open(targetUrl, '_blank');
}}
className='inline-flex items-center gap-2 px-4 py-2 bg-purple-500 hover:bg-purple-600 text-white text-sm font-medium rounded-lg transition-colors'
>
<Download className='w-4 h-4' />
<ExternalLink className='w-3 h-3' />
</button>
</div>
</div>
</div>