citra-emu
/
citra-web
Archived
1
0
Fork 0

Merge pull request #117 from BreadFish64/7z

Display .7z files for Windows on the manual download page
This commit is contained in:
Vamsi Krishna 2020-02-18 10:53:35 +05:30 committed by GitHub
commit 71fe0cfe42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -123,16 +123,17 @@ links to get you started however:<br />
if (i == 0) { table_style = 'table-first'; }
release.assets.forEach(function(asset) {
var is_windows = asset.name.includes('windows') || asset.name.includes('exe');
if (asset.name.includes('nupkg')) return;
if (asset.name.includes('.7z')) return;
if (!is_windows && asset.name.includes('.7z')) return;
if (is_windows && asset.name.includes('.tar.gz')) return;
if (asset.name.includes('RELEASES')) return;
/* We only want to provide mingw builds on the downloads page. */
if (asset.name.includes('-msvc-')) return;
let env_icon = './images/icons/file.png';
if (asset.name.includes('windows')) env_icon = '/images/icons/windows.png';
else if (asset.name.includes('exe')) env_icon = '/images/icons/windows.png';
if (is_windows) env_icon = '/images/icons/windows.png';
else if (asset.name.includes('osx')) env_icon = '/images/icons/apple.png';
else if (asset.name.includes('linux')) env_icon = '/images/icons/linux.png';