mirror of
https://github.com/LCE-Hub/lce-hub.github.io.git
synced 2026-08-20 04:27:36 +00:00
switch to flatpak
This commit is contained in:
parent
1a289df445
commit
3eca3351fe
|
|
@ -177,10 +177,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
}
|
}
|
||||||
if (os === 'Linux') {
|
if (os === 'Linux') {
|
||||||
const archTag = arch === 'arm64' ? 'aarch64' : 'x86_64';
|
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;
|
if (specific) return specific;
|
||||||
|
|
||||||
return assets.find(a => a.name.endsWith('.AppImage'));
|
return assets.find(a => a.name.endsWith('.flatpak'));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
@ -203,7 +203,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
filteredAssets = assets.filter(a => a.name.endsWith('.dmg'));
|
filteredAssets = assets.filter(a => a.name.endsWith('.dmg'));
|
||||||
title = `Emerald Legacy for macOS ${isNightly ? '(Nightly)' : ''}`;
|
title = `Emerald Legacy for macOS ${isNightly ? '(Nightly)' : ''}`;
|
||||||
} else if (osType === 'Linux') {
|
} 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)' : ''}`;
|
title = `Emerald Legacy for Linux ${isNightly ? '(Nightly)' : ''}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue