diff --git a/apps/frontend/src/page/stores/StoresIndexPage.vue b/apps/frontend/src/page/stores/StoresIndexPage.vue index aed778f..f97d2ee 100644 --- a/apps/frontend/src/page/stores/StoresIndexPage.vue +++ b/apps/frontend/src/page/stores/StoresIndexPage.vue @@ -97,8 +97,9 @@

{{ t('stores.platformsTitle') }}

@@ -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' }, -]