Skip to content

macOS Apple Silicon install CTA - #1

Open
jasonkneen wants to merge 2 commits into
FlashML-org:mainfrom
jasonkneen:feat/macos-arm-cli
Open

macOS Apple Silicon install CTA#1
jasonkneen wants to merge 2 commits into
FlashML-org:mainfrom
jasonkneen:feat/macos-arm-cli

Conversation

@jasonkneen

@jasonkneen jasonkneen commented Aug 23, 2026

Copy link
Copy Markdown

Summary

macOS visitors currently get “Not supported on your OS yet”. This detects Mac, offers Install FreeToken macOS, and copies:

curl -fsSL https://www.flashml.ai/install-macos.sh | bash

install-macos.sh clones feat/apple-metal-backend (FlashML-org, then jasonkneen/FreeToken while the engine PR is open) and installs the Metal CLI + mlx-lm.

Depends on

FlashML-org/FreeToken#65

Windows/Linux download buttons are unchanged. No .dmg; this is the CLI path.

macOS visitors were told the OS is unsupported. Detect Apple Silicon,
copy install-macos.sh, and clone the Metal engine branch (falling back
to the working fork until it lands on FlashML-org).
Copilot AI lite review requested due to automatic review settings August 23, 2026 00:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The macOS install CTA has confirmed UX/behavior bugs (iPadOS mis-detection, keyboard activation gap, and unhandled clipboard failures) that should be addressed before shipping.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a macOS Apple Silicon (Metal) install path to the FreeToken-Web landing page by introducing an “Install FreeToken macOS” CTA that copies a one-line install command, and ships the corresponding install-macos.sh script via GitHub Pages.

Changes:

  • Added install-macos.sh to bootstrap uv, clone the Metal-capable FreeToken engine ref, and install ft + mlx-lm into a local venv.
  • Updated index.html metadata and download UI to detect macOS and present a copy-to-clipboard install command flow.
  • Updated Pages deploy workflow to redeploy when install-macos.sh changes.
File summaries
File Description
install-macos.sh New macOS Apple Silicon CLI installer script (uv + venv + engine clone + mlx-lm).
index.html Adds macOS platform detection and a copy-to-clipboard install CTA + updated SEO metadata.
.github/workflows/deploy-pages.yml Ensures Pages redeploy triggers include install-macos.sh.
Review details

Suppressed comments (1)

index.html:896

  • The install-command copy handler for the macOS card doesn't handle clipboard failures; if navigator.clipboard is unavailable/denied, the promise rejection becomes unhandled and the user gets no fallback to copy the command.
        copyText(btn.getAttribute("data-copy")).then(() => {
          const file = btn.querySelector(".file");
          if (file) flashCopied(file);
        });
      });
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread install-macos.sh
Comment thread index.html
Comment on lines 682 to 686
const ua = navigator.userAgent || "";
if (/Android/i.test(ua)) return null; // mobile
if (/Android|iPhone|iPad|iPod/i.test(ua)) return null; // mobile
if (/Windows|Win32|Win64/i.test(ua)) return PLATFORMS.find(p => p.key === "win");
if (/Macintosh|Mac OS X/i.test(ua)) return PLATFORMS.find(p => p.key === "mac");
if (/Linux|X11/i.test(ua)) return PLATFORMS.find(p => p.key === "deb"); // Android already excluded above
Comment thread index.html
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants