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

Display .7z files for Windows on the manual download page

Instead of .tar.gz
This commit is contained in:
BreadFish64 2020-02-09 17:06:34 -06:00
parent 459b9d1cfd
commit ad91617d6b
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';