mirror of
https://github.com/LCE-Hub/lce-hub.github.io.git
synced 2026-07-15 21:32:25 +00:00
switch to flatpak
This commit is contained in:
@@ -177,10 +177,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
}
|
||||
if (os === 'Linux') {
|
||||
const archTag = arch === 'arm64' ? 'aarch64' : 'x86_64';
|
||||
const specific = assets.find(a => a.name.endsWith('.AppImage') && a.name.includes(archTag));
|
||||
const specific = assets.find(a => a.name.endsWith('.flatpak') && a.name.includes(archTag));
|
||||
if (specific) return specific;
|
||||
|
||||
return assets.find(a => a.name.endsWith('.AppImage'));
|
||||
return assets.find(a => a.name.endsWith('.flatpak'));
|
||||
}
|
||||
return null;
|
||||
};
|
||||
@@ -203,7 +203,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
filteredAssets = assets.filter(a => a.name.endsWith('.dmg'));
|
||||
title = `Emerald Legacy for macOS ${isNightly ? '(Nightly)' : ''}`;
|
||||
} else if (osType === 'Linux') {
|
||||
filteredAssets = assets.filter(a => a.name.endsWith('.AppImage') || a.name.endsWith('.deb') || a.name.endsWith('.rpm'));
|
||||
filteredAssets = assets.filter(a => a.name.endsWith('.flatpak') || a.name.endsWith('.deb') || a.name.endsWith('.rpm'));
|
||||
title = `Emerald Legacy for Linux ${isNightly ? '(Nightly)' : ''}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user