From 212953938d84b6fca07112dcac759eea060a8393 Mon Sep 17 00:00:00 2001 From: soryu Date: Mon, 23 Feb 2026 00:30:44 +0000 Subject: feat: publish makima to public repo with sync, GHCR, and install updates (#79) * feat: soryu-co/soryu - makima: Update install.sh to point at public makima repo * feat: soryu-co/soryu - makima: Update daemons page download links to use public makima releases * feat: soryu-co/soryu - makima: Research Cloudflare Containers for running full makima daemon * feat: soryu-co/soryu - makima: Push container image to ghcr.io/soryu-co/makima namespace * feat: soryu-co/soryu - makima: Add workflow to sync public files to soryu-co/makima repo --- makima/frontend/src/routes/daemons.tsx | 98 ++++++++++++---------------------- 1 file changed, 34 insertions(+), 64 deletions(-) (limited to 'makima/frontend/src/routes') diff --git a/makima/frontend/src/routes/daemons.tsx b/makima/frontend/src/routes/daemons.tsx index 90a476d..0f55190 100644 --- a/makima/frontend/src/routes/daemons.tsx +++ b/makima/frontend/src/routes/daemons.tsx @@ -1,16 +1,12 @@ -import { useState, useEffect, useCallback } from "react"; +import { useState, useEffect } from "react"; import { useAuth } from "../contexts/AuthContext"; import { useNavigate } from "react-router"; import { Masthead } from "../components/Masthead"; import { listDaemons, restartDaemon, - listDaemonPlatforms, - API_BASE, type Daemon, type DaemonListResponse, - type DaemonPlatform, - } from "../lib/api"; // ============================================================================= @@ -52,10 +48,6 @@ export default function DaemonsPage() { const [restartingDaemonId, setRestartingDaemonId] = useState(null); const [restartConfirmDaemonId, setRestartConfirmDaemonId] = useState(null); - // Platform availability state - const [platforms, setPlatforms] = useState([]); - const [platformsLoading, setPlatformsLoading] = useState(true); - // Redirect if not authenticated useEffect(() => { if (isAuthConfigured && !isAuthenticated) { @@ -92,36 +84,17 @@ export default function DaemonsPage() { } }; - // Friendly labels for platform identifiers - const platformLabels: Record = { - "linux-x86_64": "Linux (Intel/AMD)", - "linux-arm64": "Linux (ARM64)", - "macos-x86_64": "macOS (Intel)", - "macos-arm64": "macOS (Apple Silicon)", - }; - - const loadPlatforms = useCallback(async () => { - try { - setPlatformsLoading(true); - const response = await listDaemonPlatforms(); - setPlatforms(response.platforms); - } catch { - // Fallback: show all platforms as unavailable if API endpoint is missing - setPlatforms([ - { platform: "linux-x86_64", available: false, downloadUrl: "/api/v1/daemon/download/linux-x86_64" }, - { platform: "linux-arm64", available: false, downloadUrl: "/api/v1/daemon/download/linux-arm64" }, - { platform: "macos-x86_64", available: false, downloadUrl: "/api/v1/daemon/download/macos-x86_64" }, - { platform: "macos-arm64", available: false, downloadUrl: "/api/v1/daemon/download/macos-arm64" }, - ]); - } finally { - setPlatformsLoading(false); - } - }, []); + // Static platform data for download links + const downloadPlatforms = [ + { key: "linux-x86_64", label: "Linux (Intel/AMD)", filename: "makima-vX.X.X-linux-x86_64.tar.gz" }, + { key: "linux-arm64", label: "Linux (ARM64)", filename: "makima-vX.X.X-linux-arm64.tar.gz" }, + { key: "macos-x86_64", label: "macOS (Intel)", filename: "makima-vX.X.X-macos-x86_64.tar.gz" }, + { key: "macos-arm64", label: "macOS (Apple Silicon)", filename: "makima-vX.X.X-macos-arm64.tar.gz" }, + ]; // Initial load useEffect(() => { loadDaemons(); - loadPlatforms(); }, []); // Auto-refresh daemons every 30 seconds @@ -157,33 +130,22 @@ export default function DaemonsPage() {

- {platformsLoading ? ( -

Loading platforms...

- ) : ( - platforms.map((p) => ( - - - {platformLabels[p.platform] || p.platform} - - - {p.available ? "Available" : "Not bundled"} - - - )) - )} + {downloadPlatforms.map((p) => ( + + + {p.label} + + + {p.filename} + + + ))}
@@ -191,7 +153,7 @@ export default function DaemonsPage() { Quick Install

- curl -fsSL https://raw.githubusercontent.com/soryu-co/soryu/master/install.sh | bash + curl -fsSL https://raw.githubusercontent.com/soryu-co/makima/master/install.sh | bash
@@ -234,7 +196,15 @@ export default function DaemonsPage() {

- Kubernetes manifests available in the repository under k8s/daemon/ + Kubernetes manifests available at{" "} + + github.com/soryu-co/makima +

-- cgit v1.2.3