Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

feat(marketing): direct macOS downloads for signed builds (#278)

Leo0afff14127a2
diff --git a/.changeset/marketing-direct-mac-downloads.md b/.changeset/marketing-direct-mac-downloads.md
new file mode 100644
index 000000000..8cd1a1d01
--- /dev/null
+++ b/.changeset/marketing-direct-mac-downloads.md
@@ -0,0 +1,4 @@
+---
+---
+
+Empty changeset: marketing site and user docs only; @t3tools/marketing is changeset-ignored.
diff --git a/apps/marketing/src/components/InstallPromptDialog.astro b/apps/marketing/src/components/InstallPromptDialog.astro
deleted file mode 100644
index 8c28bbb11..000000000
--- a/apps/marketing/src/components/InstallPromptDialog.astro
+++ /dev/null
@@ -1,223 +0,0 @@
----
-import {
- MAC_CURL_INSTALL_COMMAND,
- MAC_DOWNLOAD_DIALOG_BODY,
- MAC_DOWNLOAD_DIALOG_TITLE,
-} from "../lib/downloadInstallPrompt";
----
-
-<dialog
- id="install-prompt-dialog"
- class="install-dialog"
- aria-labelledby="install-prompt-title"
- aria-describedby="install-prompt-description"
->
- <div class="install-dialog-panel">
- <form method="dialog" class="install-dialog-close-row">
- <button class="install-dialog-close" type="submit">Close</button>
- </form>
- <div class="install-dialog-copy">
- <h2 id="install-prompt-title">{MAC_DOWNLOAD_DIALOG_TITLE}</h2>
- <p id="install-prompt-description">{MAC_DOWNLOAD_DIALOG_BODY}</p>
- <pre><code>{MAC_CURL_INSTALL_COMMAND}</code></pre>
- </div>
- <div class="install-dialog-actions">
- <button class="install-dialog-action" type="button" data-copy-install-prompt>
- Copy install command
- </button>
- <button class="install-dialog-action secondary" type="button" data-copy-agent-prompt>
- Copy agent prompt
- </button>
- </div>
- </div>
-</dialog>
-
-<script>
- import { MAC_CURL_INSTALL_COMMAND } from "../lib/downloadInstallPrompt";
- import { installPromptForPlatform } from "../lib/installPrompt";
-
- const dialog = document.getElementById("install-prompt-dialog") as HTMLDialogElement | null;
- const copyButton = dialog?.querySelector<HTMLButtonElement>("[data-copy-install-prompt]");
- const agentButton = dialog?.querySelector<HTMLButtonElement>("[data-copy-agent-prompt]");
- let platform: string | null = null;
- let trigger: HTMLAnchorElement | null = null;
-
- document.addEventListener("click", (event) => {
- const link = (event.target as Element | null)?.closest<HTMLAnchorElement>(
- "a[data-install-prompt]",
- );
- if (!link || !dialog) return;
-
- event.preventDefault();
- platform = link.dataset.installPrompt ?? null;
- trigger = link;
- if (copyButton) copyButton.textContent = "Copy install command";
- if (agentButton) agentButton.textContent = "Copy agent prompt";
- dialog.showModal();
- });
-
- copyButton?.addEventListener("click", async () => {
- try {
- await navigator.clipboard.writeText(MAC_CURL_INSTALL_COMMAND);
- copyButton.textContent = "Copied";
- } catch {
- copyButton.textContent = "Copy install command";
- }
- });
-
- agentButton?.addEventListener("click", async () => {
- const prompt = platform ? installPromptForPlatform(platform) : null;
- if (!prompt) return;
- try {
- await navigator.clipboard.writeText(prompt);
- agentButton.textContent = "Copied";
- } catch {
- agentButton.textContent = "Copy agent prompt";
- }
- });
-
- dialog?.addEventListener("click", (event) => {
- if (event.target === dialog) dialog.close();
- });
-
- dialog?.addEventListener("close", () => {
- platform = null;
- if (copyButton) copyButton.textContent = "Copy install command";
- if (agentButton) agentButton.textContent = "Copy agent prompt";
- trigger?.focus();
- trigger = null;
- });
-</script>
-
-<style>
- .install-dialog {
- width: min(460px, calc(100vw - 32px));
- max-width: none;
- margin: auto;
- padding: 0;
- color: var(--color-foreground);
- background: transparent;
- border: 0;
- }
-
- .install-dialog::backdrop {
- background: rgba(9, 9, 11, 0.72);
- backdrop-filter: blur(8px);
- }
-
- .install-dialog-panel {
- display: flex;
- flex-direction: column;
- gap: 28px;
- padding: 18px;
- background: var(--color-popover);
- border: 1px solid var(--color-border);
- border-radius: 18px;
- box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
- }
-
- .install-dialog-close-row {
- display: flex;
- justify-content: flex-end;
- }
-
- .install-dialog-close {
- min-height: 36px;
- padding: 0 12px;
- color: var(--color-muted-foreground);
- font: inherit;
- font-size: 13px;
- background: transparent;
- border: 0;
- border-radius: 8px;
- cursor: pointer;
- }
-
- .install-dialog-close:hover {
- color: var(--color-foreground);
- background: var(--color-muted);
- }
-
- .install-dialog-copy {
- padding: 0 14px;
- }
-
- .install-dialog h2 {
- margin: 0;
- font-size: 25px;
- font-weight: 560;
- line-height: 1.15;
- letter-spacing: -0.035em;
- }
-
- .install-dialog-copy > p {
- margin: 14px 0 0;
- color: var(--color-muted-foreground);
- font-size: 14px;
- line-height: 1.6;
- }
-
- .install-dialog-copy pre {
- margin: 16px 0 0;
- padding: 12px 14px;
- overflow-x: auto;
- color: var(--color-foreground);
- font-size: 12px;
- line-height: 1.5;
- background: var(--color-muted);
- border-radius: 10px;
- }
-
- .install-dialog-copy code {
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
- }
-
- .install-dialog-actions {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
-
- .install-dialog-action {
- width: 100%;
- min-height: 48px;
- padding: 0 18px;
- color: var(--color-primary-foreground);
- font: inherit;
- font-size: 14px;
- font-weight: 600;
- background: var(--color-primary);
- border: 1px solid var(--color-primary);
- border-radius: 11px;
- cursor: pointer;
- }
-
- .install-dialog-action:hover {
- opacity: 0.9;
- }
-
- .install-dialog-action.secondary {
- color: var(--color-foreground);
- font-weight: 560;
- background: transparent;
- border-color: var(--color-border);
- }
-
- .install-dialog-close:focus-visible,
- .install-dialog-action:focus-visible {
- outline: 2px solid var(--color-primary);
- outline-offset: 2px;
- }
-
- @media (max-width: 520px) {
- .install-dialog-panel {
- gap: 22px;
- padding: 14px;
- border-radius: 15px;
- }
-
- .install-dialog-copy {
- padding: 0 8px;
- }
- }
-</style>
diff --git a/apps/marketing/src/lib/downloadInstallPrompt.test.ts b/apps/marketing/src/lib/downloadInstallPrompt.test.ts
deleted file mode 100644
index 9707c5b2f..000000000
--- a/apps/marketing/src/lib/downloadInstallPrompt.test.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import * as NodeFS from "node:fs";
-import * as NodePath from "node:path";
-
-import { describe, expect, it } from "vite-plus/test";
-import {
- MAC_CURL_INSTALL_COMMAND,
- MAC_DOWNLOAD_DIALOG_BODY,
- installPromptPlatformForDownload,
-} from "./downloadInstallPrompt";
-
-describe("installPromptPlatformForDownload", () => {
- it("shows the install prompt only after resolving a macOS download", () => {
- expect(installPromptPlatformForDownload("mac", true)).toBe("mac");
- expect(installPromptPlatformForDownload("mac", false)).toBeNull();
- expect(installPromptPlatformForDownload("win", true)).toBeNull();
- expect(installPromptPlatformForDownload("linux", true)).toBeNull();
- });
-
- it("sends macOS users to a checksummed GitHub DMG instead of a quarantined download", () => {
- expect(MAC_CURL_INSTALL_COMMAND).toContain(
- "https://github.com/opencoredev/akeru-bot/releases/download/${tag}",
- );
- expect(MAC_CURL_INSTALL_COMMAND).toContain("|| exit 1");
- expect(MAC_CURL_INSTALL_COMMAND).toContain("shasum -a 256 -c -");
- expect(MAC_CURL_INSTALL_COMMAND).toContain("hdiutil attach");
- expect(MAC_CURL_INSTALL_COMMAND).toContain('ditto "$source_app" "$prepared_app"');
- expect(MAC_CURL_INSTALL_COMMAND).toContain("Print :CFBundleIdentifier");
- expect(MAC_CURL_INSTALL_COMMAND).toContain('[ "$identifier" = dev.leodoes.akeru ]');
- expect(MAC_CURL_INSTALL_COMMAND).toContain("ditto");
- expect(MAC_CURL_INSTALL_COMMAND).toContain('install_id="$(uuidgen)"');
- expect(MAC_CURL_INSTALL_COMMAND).toContain(
- 'new_app="/Applications/.Akeru Bot (Alpha).app.installing.$install_id"',
- );
- expect(MAC_CURL_INSTALL_COMMAND).toContain(
- 'old_app="/Applications/.Akeru Bot (Alpha).app.backup.$install_id"',
- );
- expect(MAC_CURL_INSTALL_COMMAND).not.toContain("backup.$$");
- expect(MAC_CURL_INSTALL_COMMAND).toContain('mv " & installedApp & " " & oldApp');
- expect(MAC_CURL_INSTALL_COMMAND).toContain('mv " & newApp & " " & installedApp');
- expect(MAC_CURL_INSTALL_COMMAND).toContain('mv " & oldApp & " " & installedApp');
- expect(MAC_CURL_INSTALL_COMMAND).toContain(
- 'echo Previous application remains at " & oldApp & " >&2',
- );
- expect(MAC_CURL_INSTALL_COMMAND).toContain('" || { rm -rf " & newApp & "; exit 1; }');
- expect(MAC_CURL_INSTALL_COMMAND).not.toContain("install_app()");
- expect(MAC_CURL_INSTALL_COMMAND).toContain("xattr -d com.apple.quarantine");
- expect(MAC_CURL_INSTALL_COMMAND).toContain('open "$app"');
- expect(MAC_CURL_INSTALL_COMMAND).not.toContain("/releases/latest/download");
- expect(MAC_CURL_INSTALL_COMMAND).not.toContain("| bash");
- expect(MAC_CURL_INSTALL_COMMAND).not.toContain("install-macos.sh");
- expect(MAC_DOWNLOAD_DIALOG_BODY).toMatch(/Safari and Chrome quarantine/);
- expect(MAC_DOWNLOAD_DIALOG_BODY).toMatch(/damaged/);
- expect(MAC_DOWNLOAD_DIALOG_BODY).toMatch(/curl does not quarantine/);
- });
-
- it("keeps the install docs on the same fail-closed recipe", () => {
- const docs = NodeFS.readFileSync(
- NodePath.resolve(import.meta.dirname, "../../../../docs/user/install.md"),
- "utf8",
- );
- expect(docs).toContain(MAC_CURL_INSTALL_COMMAND);
- expect(docs).not.toContain("MAC_GATEKEEPER_COMMAND");
- });
-});
diff --git a/apps/marketing/src/lib/downloadInstallPrompt.ts b/apps/marketing/src/lib/downloadInstallPrompt.ts
deleted file mode 100644
index 64d32fb1f..000000000
--- a/apps/marketing/src/lib/downloadInstallPrompt.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-export const MAC_CURL_INSTALL_COMMAND = [
- "(",
- "set -euo pipefail",
- '[ "$(uname -s)" = Darwin ]',
- '[ "$(uname -m)" = arm64 ]',
- 'tmp="$(mktemp -d)"',
- 'mnt="$tmp/mnt"',
- `trap 'hdiutil detach "$mnt" >/dev/null 2>&1 || true; rm -rf "$tmp"' EXIT`,
- 'mkdir -p "$mnt"',
- 'tag="$(curl -fsSL https://api.github.com/repos/opencoredev/akeru-bot/releases/latest | sed -n \'s/.*"tag_name":[[:space:]]*"\\(v[0-9][^"]*\\)".*/\\1/p\' | head -1)"',
- '[[ "$tag" =~ ^v[0-9]+[.][0-9]+[.][0-9]+$ ]]',
- 'version="${tag#v}"',
- 'dmg="Akeru-Bot-${version}-arm64.dmg"',
- 'base="https://github.com/opencoredev/akeru-bot/releases/download/${tag}"',
- 'curl -fsSL -o "$tmp/SHA256SUMS" "$base/SHA256SUMS"',
- 'curl -fL -o "$tmp/$dmg" "$base/$dmg"',
- 'line="$(grep -E "^[a-fA-F0-9]{64}[[:space:]]+\\*?${dmg}\\$" "$tmp/SHA256SUMS")" || exit 1',
- '( cd "$tmp" && printf "%s\\n" "$line" | shasum -a 256 -c - )',
- 'hdiutil attach "$tmp/$dmg" -nobrowse -readonly -mountpoint "$mnt"',
- 'app="/Applications/Akeru Bot (Alpha).app"',
- 'source_app="$mnt/Akeru Bot (Alpha).app"',
- 'prepared_app="$tmp/Akeru Bot (Alpha).app"',
- 'ditto "$source_app" "$prepared_app"',
- 'identifier="$(/usr/libexec/PlistBuddy -c \'Print :CFBundleIdentifier\' "$prepared_app/Contents/Info.plist")"',
- '[ "$identifier" = dev.leodoes.akeru ]',
- 'install_id="$(uuidgen)"',
- 'new_app="/Applications/.Akeru Bot (Alpha).app.installing.$install_id"',
- 'old_app="/Applications/.Akeru Bot (Alpha).app.backup.$install_id"',
- 'osascript - "$prepared_app" "$new_app" "$old_app" "$app" <<\'APPLESCRIPT\'',
- "on run argv",
- " set preparedApp to quoted form of item 1 of argv",
- " set newApp to quoted form of item 2 of argv",
- " set oldApp to quoted form of item 3 of argv",
- " set installedApp to quoted form of item 4 of argv",
- ' do shell script "rm -rf " & newApp & " " & oldApp & " && test ! -e " & newApp & " && test ! -e " & oldApp & " && { ditto " & preparedApp & " " & newApp & " || { rm -rf " & newApp & "; exit 1; }; } && { test ! -e " & installedApp & " || mv " & installedApp & " " & oldApp & "; } && { mv " & newApp & " " & installedApp & " || { test ! -e " & oldApp & " || mv " & oldApp & " " & installedApp & " || { rm -rf " & newApp & "; echo Previous application remains at " & oldApp & " >&2; exit 1; }; rm -rf " & newApp & "; exit 1; }; } && rm -rf " & oldApp with administrator privileges',
- "end run",
- "APPLESCRIPT",
- 'xattr -d com.apple.quarantine "$app" 2>/dev/null || true',
- 'open "$app"',
- ")",
-].join("\n");
-
-export const MAC_DOWNLOAD_DIALOG_TITLE = "Install from Terminal, not the browser";
-
-export const MAC_DOWNLOAD_DIALOG_BODY =
- "Safari and Chrome quarantine unsigned Mac apps, so Gatekeeper says Akeru Bot is damaged. That is not a corrupt file. Paste this in Terminal. It downloads the GitHub DMG, checks SHA256SUMS, then installs. curl does not quarantine the download.";
-
-export function installPromptPlatformForDownload(
- platform: string | undefined,
- resolvedAsset: boolean,
-): "mac" | null {
- return resolvedAsset && platform === "mac" ? "mac" : null;
-}
diff --git a/apps/marketing/src/lib/installPrompt.test.ts b/apps/marketing/src/lib/installPrompt.test.ts
deleted file mode 100644
index db868d176..000000000
--- a/apps/marketing/src/lib/installPrompt.test.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { describe, expect, it } from "vite-plus/test";
-import { INSTALL_SUCCESS_MESSAGE, installPromptForPlatform } from "./installPrompt";
-import { MAC_INSTALL_PROMPT } from "./macInstallPrompt";
-import { windowsInstallPrompt } from "./installPrompts";
-
-describe("installPromptForPlatform", () => {
- it("selects the verified prompt for every shipped platform", () => {
- expect(installPromptForPlatform("mac")).toBe(MAC_INSTALL_PROMPT);
- expect(installPromptForPlatform("win")).toBe(windowsInstallPrompt);
- expect(installPromptForPlatform("linux")).toMatch(/x86_64 or amd64/);
- });
-
- it("selects the verified Linux x64 AppImage prompt", () => {
- const prompt = installPromptForPlatform("linux");
-
- expect(prompt).not.toBeNull();
- expect(prompt).toMatch(/x86_64 or amd64/);
- expect(prompt).toMatch(/github\.com\/opencoredev\/akeru-bot/);
- expect(prompt).toMatch(/SHA256SUMS to contain that asset's exact filename/);
- expect(prompt).toMatch(/Ask me where to save/);
- expect(prompt).toMatch(/Only after verification, make that AppImage executable/);
- });
-
- it("refuses unsupported platforms", () => {
- expect(installPromptForPlatform("android")).toBeNull();
- });
-
- it("gates the exact success sentence on launch verification", () => {
- for (const platform of ["mac", "win", "linux"]) {
- const prompt = installPromptForPlatform(platform)!;
- expect(prompt.split(INSTALL_SUCCESS_MESSAGE)).toHaveLength(2);
- expect(prompt).toMatch(/only after|Only after/);
- expect(prompt).toMatch(/checksum/i);
- expect(prompt).toMatch(/launch/i);
- expect(prompt).toMatch(/process|window/i);
- }
- });
-});
diff --git a/apps/marketing/src/lib/installPrompt.ts b/apps/marketing/src/lib/installPrompt.ts
deleted file mode 100644
index f5eeba9ca..000000000
--- a/apps/marketing/src/lib/installPrompt.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { MAC_INSTALL_PROMPT } from "./macInstallPrompt";
-import { windowsInstallPrompt } from "./installPrompts";
-
-export const INSTALL_SUCCESS_MESSAGE = "You can open the app now with no issues.";
-
-const LINUX_X64_INSTALL_PROMPT = `Install the latest stable Akeru Bot AppImage for me. Before downloading, require uname -m to return x86_64 or amd64 and stop for every other architecture. Use only the latest release from https://github.com/opencoredev/akeru-bot and download its x86_64 AppImage plus SHA256SUMS. Ask me where to save the AppImage. Require SHA256SUMS to contain that asset's exact filename and require the downloaded file's SHA-256 to match. Stop if the checksum is missing or mismatched. Only after verification, make that AppImage executable. Do not chmod any other file and do not install it system-wide. Launch the verified AppImage, then verify its process or window is running. If any step fails, report the failure and do not claim success. Only after launch verification, output exactly: ${INSTALL_SUCCESS_MESSAGE}`;
-
-export function installPromptForPlatform(platform: string): string | null {
- if (platform === "mac") return MAC_INSTALL_PROMPT;
- if (platform === "linux") return LINUX_X64_INSTALL_PROMPT;
- return platform === "win" ? windowsInstallPrompt : null;
-}
diff --git a/apps/marketing/src/lib/installPrompts.test.ts b/apps/marketing/src/lib/installPrompts.test.ts
deleted file mode 100644
index 9ec9d4a85..000000000
--- a/apps/marketing/src/lib/installPrompts.test.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { describe, expect, it } from "vite-plus/test";
-
-import { windowsInstallPrompt } from "./installPrompts";
-
-describe("Windows install prompt", () => {
- it("pins the official source and preserves Windows security controls", () => {
- expect(windowsInstallPrompt).toContain("opencoredev/akeru-bot");
- expect(windowsInstallPrompt).toContain("SHA256SUMS");
- expect(windowsInstallPrompt).toContain("Refuse ARM64");
- expect(windowsInstallPrompt).toContain("Akeru-Bot-<version>-x64.exe");
- expect(windowsInstallPrompt).toContain("Unblock-File");
- expect(windowsInstallPrompt).toContain("Do not disable or change SmartScreen");
- expect(windowsInstallPrompt.endsWith("all succeed.")).toBe(true);
- });
-});
diff --git a/apps/marketing/src/lib/installPrompts.ts b/apps/marketing/src/lib/installPrompts.ts
deleted file mode 100644
index 468722e65..000000000
--- a/apps/marketing/src/lib/installPrompts.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export const VERIFIED_INSTALL_SUCCESS = "You can open the app now with no issues.";
-
-export const windowsInstallPrompt = `Install the latest stable Windows release of Akeru Bot from opencoredev/akeru-bot. Use PowerShell and stop on every failed check. Detect the native Windows architecture first. Continue only for AMD64 as x64. Refuse ARM64, x86, and every other architecture because the official release supports Windows x64 only. Fetch the latest stable release only from https://api.github.com/repos/opencoredev/akeru-bot/releases/latest and require a stable vX.Y.Z tag. Download its exact Akeru-Bot-<version>-x64.exe asset and SHA256SUMS. Require both download URLs to start with https://github.com/opencoredev/akeru-bot/releases/download/. Find one SHA256SUMS entry whose filename exactly matches the installer. Stop if the entry is missing, duplicated, malformed, or if Get-FileHash -Algorithm SHA256 does not match it. Only after the hash matches, run Unblock-File on that installer. Do not disable or change SmartScreen, antivirus software, or any system-wide security setting. Run the installer and ask me only for a native Windows administrator confirmation if Windows requires one. Launch Akeru Bot, then verify its running process has an Akeru Bot window or that its executable is the installed Akeru Bot executable. Do not claim success after only starting the installer or process. Say exactly "${VERIFIED_INSTALL_SUCCESS}" only after checksum verification, completed installation, launch, and process or window verification all succeed.`;
diff --git a/apps/marketing/src/lib/macInstallPrompt.test.ts b/apps/marketing/src/lib/macInstallPrompt.test.ts
deleted file mode 100644
index 676d9010d..000000000
--- a/apps/marketing/src/lib/macInstallPrompt.test.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { describe, expect, it } from "vite-plus/test";
-
-import {
- MAC_INSTALL_PROMPT,
- MAC_INSTALL_SUCCESS,
- checksumForAsset,
- macInstallSuccess,
- selectMacInstallAsset,
-} from "./macInstallPrompt";
-
-const assets = [
- { name: "Akeru-Bot-1.0.0-arm64.dmg", browser_download_url: "https://example.test/arm" },
-];
-
-describe("macOS install prompt", () => {
- it("uses the exact app name shipped in the DMG", () => {
- expect(MAC_INSTALL_PROMPT).toContain("/Applications/Akeru Bot (Alpha).app");
- expect(MAC_INSTALL_PROMPT).not.toContain("/Applications/Akeru Bot.app");
- });
-
- it("selects the matching release asset and refuses unavailable architectures", () => {
- expect(selectMacInstallAsset("arm64", assets)).toBe(assets[0]);
- expect(selectMacInstallAsset("x86_64", assets)).toBeNull();
- expect(selectMacInstallAsset("powerpc", assets)).toBeNull();
- });
-
- it("requires an exact SHA256SUMS entry for the selected asset", () => {
- const digest = "a".repeat(64);
- const checksums = `${digest} Akeru-Bot-1.0.0-arm64.dmg\n${"b".repeat(64)} other.dmg`;
-
- expect(checksumForAsset(checksums, assets[0]!.name)).toBe(digest);
- expect(checksumForAsset(checksums, "Akeru-Bot-1.0.0-x64.dmg")).toBeNull();
- expect(checksumForAsset(`not-a-hash ${assets[0]!.name}`, assets[0]!.name)).toBeNull();
- });
-
- it("reports success only after every verification gate passes", () => {
- const verified = {
- checksumVerified: true,
- installed: true,
- launched: true,
- appVisible: true,
- };
-
- expect(macInstallSuccess(verified)).toBe(MAC_INSTALL_SUCCESS);
- for (const gate of Object.keys(verified) as Array<keyof typeof verified>) {
- expect(macInstallSuccess({ ...verified, [gate]: false })).toBeNull();
- }
- });
-});
diff --git a/apps/marketing/src/lib/macInstallPrompt.ts b/apps/marketing/src/lib/macInstallPrompt.ts
deleted file mode 100644
index 3bf429245..000000000
--- a/apps/marketing/src/lib/macInstallPrompt.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import type { ReleaseAsset } from "./releases";
-
-export const MAC_INSTALL_SUCCESS = "You can open the app now with no issues.";
-
-export const MAC_INSTALL_PROMPT = `Install the latest unsigned macOS release of Akeru Bot from opencoredev/akeru-bot. Use no other repository or download source. Detect the Mac architecture with uname -m before downloading. Continue only for arm64 and stop for x86_64 or every other architecture because the official release supports Apple silicon only. Download the exact Akeru-Bot-<version>-arm64.dmg asset and SHA256SUMS from the same latest stable vX.Y.Z GitHub release. Require an exact checksum entry for the DMG, verify it with shasum -a 256, and stop on a missing or mismatched checksum. Mount the verified DMG and install Akeru Bot (Alpha).app in /Applications. Ask only for the native macOS administrator confirmation if /Applications requires it. Remove com.apple.quarantine only from the installed /Applications/Akeru Bot (Alpha).app. Never disable Gatekeeper or change any system-wide security setting. Launch /Applications/Akeru Bot (Alpha).app and verify that its process or window exists. Say exactly "${MAC_INSTALL_SUCCESS}" only after the checksum, install, launch, and process or window checks all succeed.`;
-
-export function selectMacInstallAsset(
- architecture: string,
- assets: ReadonlyArray<ReleaseAsset>,
-): ReleaseAsset | null {
- if (architecture !== "arm64") return null;
- return assets.find((asset) => asset.name.endsWith("-arm64.dmg")) ?? null;
-}
-
-export function checksumForAsset(checksums: string, assetName: string): string | null {
- for (const line of checksums.split(/\r?\n/)) {
- const match = /^([a-f\d]{64})[ \t]+\*?(.+)$/i.exec(line);
- if (match?.[2] === assetName) return match[1]?.toLowerCase() ?? null;
- }
- return null;
-}
-
-export function macInstallSuccess(input: {
- checksumVerified: boolean;
- installed: boolean;
- launched: boolean;
- appVisible: boolean;
-}): string | null {
- return Object.values(input).every(Boolean) ? MAC_INSTALL_SUCCESS : null;
-}
diff --git a/apps/marketing/src/lib/releases.test.ts b/apps/marketing/src/lib/releases.test.ts
index bf11b1e03..ef5d09e9e 100644
--- a/apps/marketing/src/lib/releases.test.ts
+++ b/apps/marketing/src/lib/releases.test.ts
@@ -124,8 +124,8 @@ describe("release downloads", () => {
NodeAssert.equal(selectReleaseAsset({ ...release, tag_name: "preview" }, "arm64.dmg"), null);
});
- it("prompts for every unsigned desktop artifact", () => {
- NodeAssert.equal(requiresUnsignedInstall("arm64.dmg"), true);
+ it("prompts only for unsigned desktop artifacts", () => {
+ NodeAssert.equal(requiresUnsignedInstall("arm64.dmg"), false);
NodeAssert.equal(requiresUnsignedInstall("x64.exe"), true);
NodeAssert.equal(requiresUnsignedInstall("x64.AppImage"), true);
});
diff --git a/apps/marketing/src/lib/releases.ts b/apps/marketing/src/lib/releases.ts
index faae71477..7ae30144b 100644
--- a/apps/marketing/src/lib/releases.ts
+++ b/apps/marketing/src/lib/releases.ts
@@ -32,7 +32,7 @@ const TARGETS = {
os: "mac",
label: "Download for macOS",
assetSuffix: "arm64.dmg",
- unsigned: true,
+ unsigned: false,
},
win: {
os: "win",
diff --git a/apps/marketing/src/pages/download.astro b/apps/marketing/src/pages/download.astro
index bf12d3563..925a7052f 100644
--- a/apps/marketing/src/pages/download.astro
+++ b/apps/marketing/src/pages/download.astro
@@ -1,6 +1,5 @@
---
import Layout from "../layouts/Layout.astro";
-import InstallPromptDialog from "../components/InstallPromptDialog.astro";
import { RELEASES_URL } from "../lib/releases";
---
@@ -67,11 +66,9 @@ import { RELEASES_URL } from "../lib/releases";
</a>
</p>
</div>
- <InstallPromptDialog />
</Layout>
<script>
- import { installPromptPlatformForDownload } from "../lib/downloadInstallPrompt";
import {
fetchLatestRelease,
requiresUnsignedInstall,
@@ -90,13 +87,6 @@ import { RELEASES_URL } from "../lib/releases";
const suffix = card.dataset.asset;
if (!suffix) return;
const asset = await resolveAssetDownload(card, suffix, releasePromise);
- const promptPlatform = installPromptPlatformForDownload(card.dataset.os, asset !== null);
- if (promptPlatform) {
- card.dataset.installPrompt = promptPlatform;
- card.href = "#";
- card.removeAttribute("data-unsigned");
- return;
- }
card.dataset.unsigned = asset && requiresUnsignedInstall(suffix) ? "true" : "";
});
diff --git a/apps/marketing/src/pages/index.astro b/apps/marketing/src/pages/index.astro
index 87445fd26..5ce182ca4 100644
--- a/apps/marketing/src/pages/index.astro
+++ b/apps/marketing/src/pages/index.astro
@@ -1,6 +1,5 @@
---
import Layout from "../layouts/Layout.astro";
-import InstallPromptDialog from "../components/InstallPromptDialog.astro";
import { docsUrl } from "../lib/site";
import { RELEASES_URL } from "../lib/releases";
@@ -233,12 +232,10 @@ const DOWNLOAD_GLYPH = `<path d="M7 11.5L12 17.5L17 11.5H14L14 3H10L10 11.5H7Z"
</a>
</div>
</section>
- <InstallPromptDialog />
</Layout>
<script>
import { pickMostVisibleDemo } from "../lib/demoPlayback";
- import { installPromptPlatformForDownload } from "../lib/downloadInstallPrompt";
import {
detectDownloadTarget,
fetchLatestRelease,
@@ -275,27 +272,12 @@ const DOWNLOAD_GLYPH = `<path d="M7 11.5L12 17.5L17 11.5H14L14 3H10L10 11.5H7Z"
const suffix = card.dataset.asset;
if (!suffix || card === button) return;
const asset = await resolveAssetDownload(card, suffix, release);
- const promptPlatform = installPromptPlatformForDownload(card.dataset.os, asset !== null);
- if (promptPlatform) {
- card.dataset.installPrompt = promptPlatform;
- card.href = "#";
- card.removeAttribute("data-unsigned");
- return;
- }
card.dataset.unsigned = asset && requiresUnsignedInstall(suffix) ? "true" : "";
});
if (button && platform) {
const asset = await resolveAssetDownload(button, platform.assetSuffix, release);
- const promptPlatform = installPromptPlatformForDownload(platform.os, asset !== null);
- if (promptPlatform) {
- button.dataset.installPrompt = promptPlatform;
- button.href = "#";
- button.removeAttribute("data-unsigned");
- button.removeAttribute("aria-disabled");
- } else {
- button.dataset.unsigned = asset && platform.unsigned ? "true" : "";
- }
+ button.dataset.unsigned = asset && platform.unsigned ? "true" : "";
if (!asset && label) label.textContent = "All downloads";
}
await Promise.all(cardDownloads);
diff --git a/docs/user/install.md b/docs/user/install.md
index 86a1c733f..3d091d1a6 100644
--- a/docs/user/install.md
+++ b/docs/user/install.md
@@ -8,7 +8,8 @@ the same server for web and remote clients.
Download the current installer from
[GitHub Releases](https://github.com/opencoredev/akeru-bot/releases).
-- macOS: Apple silicon DMG
+- macOS: Apple silicon DMG, signed and notarized. Open the DMG and drag **Akeru Bot** into
+ **Applications**. The app opens without a Gatekeeper warning.
- Windows: Windows 10 or 11 x64 installer
- Linux: x86_64 AppImage
@@ -31,60 +32,6 @@ The command starts the server and opens the local web app. Run this for the comp
npx akeru-bot@latest --help
```
-On macOS, install from Terminal. Safari and Chrome quarantine unsigned apps, so a browser
-download looks damaged even when the file is fine. `curl` does not set that flag:
-
-```bash
-(
-set -euo pipefail
-[ "$(uname -s)" = Darwin ]
-[ "$(uname -m)" = arm64 ]
-tmp="$(mktemp -d)"
-mnt="$tmp/mnt"
-trap 'hdiutil detach "$mnt" >/dev/null 2>&1 || true; rm -rf "$tmp"' EXIT
-mkdir -p "$mnt"
-tag="$(curl -fsSL https://api.github.com/repos/opencoredev/akeru-bot/releases/latest | sed -n 's/.*"tag_name":[[:space:]]*"\(v[0-9][^"]*\)".*/\1/p' | head -1)"
-[[ "$tag" =~ ^v[0-9]+[.][0-9]+[.][0-9]+$ ]]
-version="${tag#v}"
-dmg="Akeru-Bot-${version}-arm64.dmg"
-base="https://github.com/opencoredev/akeru-bot/releases/download/${tag}"
-curl -fsSL -o "$tmp/SHA256SUMS" "$base/SHA256SUMS"
-curl -fL -o "$tmp/$dmg" "$base/$dmg"
-line="$(grep -E "^[a-fA-F0-9]{64}[[:space:]]+\*?${dmg}\$" "$tmp/SHA256SUMS")" || exit 1
-( cd "$tmp" && printf "%s\n" "$line" | shasum -a 256 -c - )
-hdiutil attach "$tmp/$dmg" -nobrowse -readonly -mountpoint "$mnt"
-app="/Applications/Akeru Bot (Alpha).app"
-source_app="$mnt/Akeru Bot (Alpha).app"
-prepared_app="$tmp/Akeru Bot (Alpha).app"
-ditto "$source_app" "$prepared_app"
-identifier="$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' "$prepared_app/Contents/Info.plist")"
-[ "$identifier" = dev.leodoes.akeru ]
-install_id="$(uuidgen)"
-new_app="/Applications/.Akeru Bot (Alpha).app.installing.$install_id"
-old_app="/Applications/.Akeru Bot (Alpha).app.backup.$install_id"
-osascript - "$prepared_app" "$new_app" "$old_app" "$app" <<'APPLESCRIPT'
-on run argv
- set preparedApp to quoted form of item 1 of argv
- set newApp to quoted form of item 2 of argv
- set oldApp to quoted form of item 3 of argv
- set installedApp to quoted form of item 4 of argv
- do shell script "rm -rf " & newApp & " " & oldApp & " && test ! -e " & newApp & " && test ! -e " & oldApp & " && { ditto " & preparedApp & " " & newApp & " || { rm -rf " & newApp & "; exit 1; }; } && { test ! -e " & installedApp & " || mv " & installedApp & " " & oldApp & "; } && { mv " & newApp & " " & installedApp & " || { test ! -e " & oldApp & " || mv " & oldApp & " " & installedApp & " || { rm -rf " & newApp & "; echo Previous application remains at " & oldApp & " >&2; exit 1; }; rm -rf " & newApp & "; exit 1; }; } && rm -rf " & oldApp with administrator privileges
-end run
-APPLESCRIPT
-xattr -d com.apple.quarantine "$app" 2>/dev/null || true
-open "$app"
-)
-```
-
-This resolves one GitHub tag, downloads that tag's arm64 DMG and `SHA256SUMS`, verifies the
-checksum, installs **Akeru Bot (Alpha).app** into `/Applications`, and opens it.
-
-Windows and Linux installers are on the same [GitHub Releases](https://github.com/opencoredev/akeru-bot/releases)
-page.
-
-If Safari or Chrome already downloaded the DMG, discard that copy and use the Terminal command.
-Do not turn off Gatekeeper or change a system-wide security setting.
-
Use the [background service](./background-service.md) when the server must stay available after you
close the terminal.