Spaces:
Running
Running
File size: 1,710 Bytes
bc2711b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /** Target card catalogue. Add new targets here; backend /api/analyze decides availability. */
export const TARGET_META: Record<string, { icon: string; label: string; platform: string }> = {
linux_appimage: { icon: "🐧", label: "Linux AppImage", platform: "x86_64 .AppImage · needs webkit2gtk-4.1 + gtk3" },
arch_pkgbuild: { icon: "📦", label: "Arch PKGBUILD", platform: "makepkg -si · Arch / CachyOS / Manjaro" },
windows_portable: { icon: "🪟", label: "Windows Portable", platform: "Not buildable inside the HF Space" },
firefox_ext: { icon: "🦊", label: "Firefox Extension", platform: ".xpi (unsigned)" },
chromium_ext: { icon: "🧩", label: "Chrome Extension", platform: "MV3 zip · load unpacked" },
pwa: { icon: "📱", label: "PWA", platform: "Installable web app zip" },
html_widget: { icon: "🔲", label: "HTML Widget", platform: "Embeddable iframe widget zip" },
android: { icon: "🤖", label: "Android", platform: "Capacitor debug APK (unsigned)" },
tauri: { icon: "🦀", label: "Tauri Project", platform: "Source project zip — build on your machine" },
mcp: { icon: "🔌", label: "MCP Server / Config", platform: "Cursor / Claude Desktop config or stdio server" },
};
export const TARGET_ORDER = Object.keys(TARGET_META);
export const MODES = [
{ id: "local", label: "Local", desc: "Runs on your machine. Project/source output; no live Space needed once built." },
{ id: "hybrid", label: "Hybrid", desc: "Local frontend shell; the app/model still runs on the live HF Space (internet required)." },
{ id: "hosted_wrapper", label: "Hosted Wrapper", desc: "Native shell (window / WebView / config) that loads the live HF Space. Not offline." },
] as const;
|