batocera info update

This commit is contained in:
2026-08-23 21:59:57 +02:00
parent 3a524d5003
commit c0252928c6
@@ -97,8 +97,9 @@
<section class="st-section">
<h2 class="st-section-title">{{ t('stores.platformsTitle') }}</h2>
<ul class="st-platforms">
<li v-for="p in platforms" :key="p.platform" class="st-platform">
<li v-for="p in current.platforms" :key="p.platform" class="st-platform">
<span class="st-platform-name">{{ p.label }}</span>
<span v-if="p.note" class="st-platform-note mono">{{ p.note }}</span>
<code class="st-platform-ext mono">{{ p.ext }}</code>
</li>
</ul>
@@ -137,12 +138,26 @@ type DeviceId = 'batocera' | 'retroarch'
const BATOCERA_CLI = '/userdata/system/batocera-store/ttg-store'
const RETROARCH_CLI = '~/.local/bin/ttg-retroarch-store'
type StorePlatform = { platform: string; label: string; ext: string; note?: string }
const CARTRIDGE_PLATFORMS: StorePlatform[] = [
{ platform: 'c64', label: 'Commodore 64 (VICE)', ext: '.prg' },
{ platform: 'tic80', label: 'TIC-80', ext: '.tic' },
]
const devices = [
{
id: 'batocera' as DeviceId,
projectUrl: 'https://batocera.org',
repoUrl: `${FORGE}/ttg-batocera-store`,
wikiUrl: `${CONFIG.wikiBase}/stores/ttg-batocera-store`,
platforms: [
...CARTRIDGE_PLATFORMS,
{ platform: 'ebitengine', label: 'Ebitengine', ext: '.zip', note: 'x86_64 · ARM64' },
{ platform: 'bevy', label: 'Bevy', ext: '.zip', note: 'x86_64 · ARM64' },
{ platform: 'godot', label: 'Godot', ext: '.zip', note: 'x86_64' },
{ platform: 'love', label: 'LÖVE', ext: '.zip', note: 'x86_64' },
] as StorePlatform[],
installCmd: `curl -fsSL ${FORGE}/ttg-batocera-store/raw/branch/master/install.sh | sh`,
afterInstallCmd: 'batocera-es-swissknife --restart',
@@ -158,6 +173,7 @@ const devices = [
projectUrl: 'https://www.retroarch.com',
repoUrl: `${FORGE}/ttg-retroarch-store`,
wikiUrl: `${CONFIG.wikiBase}/stores/ttg-retroarch-store`,
platforms: CARTRIDGE_PLATFORMS,
installCmd: `curl -fsSL ${FORGE}/ttg-retroarch-store/raw/branch/master/install.sh | sh`,
afterInstallCmd: '',
uninstallCmd: `curl -fsSL ${FORGE}/ttg-retroarch-store/raw/branch/master/uninstall.sh | sh`,
@@ -196,10 +212,6 @@ function selectView(id: ViewId) {
void router.replace({ query: { ...route.query, view: id } })
}
const platforms = [
{ platform: 'c64', label: 'Commodore 64 (VICE)', ext: '.prg' },
{ platform: 'tic80', label: 'TIC-80', ext: '.tic' },
]
</script>
<style scoped>
@@ -277,6 +289,9 @@ const platforms = [
.st-platform-name {
@apply flex-grow text-sm text-fg;
}
.st-platform-note {
@apply text-xs text-fg-subtle;
}
.st-platform-ext {
@apply rounded border border-line bg-surface px-2 py-0.5 text-xs text-accent;
}