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.
fix(macos): install unsigned Mac builds from a checksummed GitHub DMG (#123)
EgerDevabb64f8340da
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex e3a5dbdb8..bbacea905 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -220,6 +220,25 @@ jobs:xcrun stapler validate "${apps[0]}"spctl --assess --type execute --verbose=2 "${apps[0]}"+ - name: Verify unsigned macOS app signature+ if: matrix.platform == 'mac' && env.SIGNED != 'true'+ shell: bash+ run: |+ dmg="release/Akeru-Bot-$RELEASE_VERSION-arm64.dmg"+ mount_point="$RUNNER_TEMP/akeru-unsigned-dmg"+ mkdir -p "$mount_point"+ hdiutil attach "$dmg" -nobrowse -readonly -mountpoint "$mount_point"+ trap 'hdiutil detach "$mount_point" >/dev/null 2>&1 || true' EXIT+ apps=("$mount_point"/*.app)+ test "${#apps[@]}" -eq 1+ codesign --verify --deep --strict --verbose=2 "${apps[0]}"+ signature="$(codesign -dv --verbose=4 "${apps[0]}" 2>&1)"+ printf '%s\n' "$signature"+ if ! printf '%s\n' "$signature" | grep -q 'Identifier=dev.leodoes.akeru$'; then+ printf 'Packaged app is missing the Akeru bundle identifier.\n' >&2+ exit 1+ fi+- name: Launch macOS DMGif: matrix.platform == 'mac'run: vp run test:desktop-packaged-mac -- "release/Akeru-Bot-$RELEASE_VERSION-arm64.dmg"diff --git a/apps/marketing/src/components/InstallPromptDialog.astro b/apps/marketing/src/components/InstallPromptDialog.astroindex 63284227e..8c28bbb11 100644--- a/apps/marketing/src/components/InstallPromptDialog.astro+++ b/apps/marketing/src/components/InstallPromptDialog.astro@@ -1,5 +1,6 @@---import {+ MAC_CURL_INSTALL_COMMAND,MAC_DOWNLOAD_DIALOG_BODY,MAC_DOWNLOAD_DIALOG_TITLE,} from "../lib/downloadInstallPrompt";@@ -18,18 +19,26 @@ import {<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>- <button class="install-dialog-action" type="button" data-copy-install-prompt>- Copy prompt- </button></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;@@ -37,22 +46,33 @@ import {const link = (event.target as Element | null)?.closest<HTMLAnchorElement>("a[data-install-prompt]",);- if (!link || !dialog || event.defaultPrevented) return;+ if (!link || !dialog) return;+ event.preventDefault();platform = link.dataset.installPrompt ?? null;trigger = link;- if (copyButton) copyButton.textContent = "Copy prompt";+ 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);- copyButton.textContent = "Copied";+ agentButton.textContent = "Copied";} catch {- copyButton.textContent = "Copy prompt";+ agentButton.textContent = "Copy agent prompt";}});@@ -62,7 +82,8 @@ import {dialog?.addEventListener("close", () => {platform = null;- if (copyButton) copyButton.textContent = "Copy prompt";+ if (copyButton) copyButton.textContent = "Copy install command";+ if (agentButton) agentButton.textContent = "Copy agent prompt";trigger?.focus();trigger = null;});@@ -129,13 +150,34 @@ import {letter-spacing: -0.035em;}- .install-dialog-copy > p:last-child {+ .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;@@ -154,6 +196,13 @@ import {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);diff --git a/apps/marketing/src/lib/downloadInstallPrompt.test.ts b/apps/marketing/src/lib/downloadInstallPrompt.test.tsindex bff630b92..9707c5b2f 100644--- a/apps/marketing/src/lib/downloadInstallPrompt.test.ts+++ b/apps/marketing/src/lib/downloadInstallPrompt.test.ts@@ -1,5 +1,9 @@+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";@@ -12,8 +16,49 @@ describe("installPromptPlatformForDownload", () => {expect(installPromptPlatformForDownload("linux", true)).toBeNull();});- it("explains why macOS may block the app", () => {- expect(MAC_DOWNLOAD_DIALOG_BODY).toMatch(/paid Developer Program/);- expect(MAC_DOWNLOAD_DIALOG_BODY).toMatch(/macOS may block Akeru Bot/);+ 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.tsindex b16ce7f7a..64d32fb1f 100644--- a/apps/marketing/src/lib/downloadInstallPrompt.ts+++ b/apps/marketing/src/lib/downloadInstallPrompt.ts@@ -1,7 +1,49 @@-export const MAC_DOWNLOAD_DIALOG_TITLE = "Akeru Bot isn't signed yet";+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 =- "We haven't joined Apple's paid Developer Program yet, so macOS may block Akeru Bot the first time you open it. Copy this prompt to your coding agent. It will verify the app and open it for you.";+ "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,diff --git a/apps/marketing/src/pages/download.astro b/apps/marketing/src/pages/download.astroindex 52cde14c2..6b6c2d710 100644--- a/apps/marketing/src/pages/download.astro+++ b/apps/marketing/src/pages/download.astro@@ -88,7 +88,12 @@ import { RELEASES_URL } from "../lib/releases";if (!suffix) return;const asset = await resolveAssetDownload(card, suffix, releasePromise);const promptPlatform = installPromptPlatformForDownload(card.dataset.os, asset !== null);- if (promptPlatform) card.dataset.installPrompt = promptPlatform;+ 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.astroindex 9ecb0ada8..0866eec2a 100644--- a/apps/marketing/src/pages/index.astro+++ b/apps/marketing/src/pages/index.astro@@ -225,15 +225,26 @@ const DOWNLOAD_GLYPH = `<path d="M7 11.5L12 17.5L17 11.5H14L14 3H10L10 11.5H7Z"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;+ 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.dataset.unsigned = asset && platform.unsigned ? "true" : "";+ if (promptPlatform) {+ button.dataset.installPrompt = promptPlatform;+ button.href = "#";+ button.removeAttribute("data-unsigned");+ button.removeAttribute("aria-disabled");+ } else {+ button.dataset.unsigned = asset && platform.unsigned ? "true" : "";+ }if (!asset && label) label.textContent = "All downloads";}await Promise.all(cardDownloads);diff --git a/docs/internals/ci.md b/docs/internals/ci.mdindex a933a2482..256cdb237 100644--- a/docs/internals/ci.md+++ b/docs/internals/ci.md@@ -34,6 +34,8 @@ Merging a stable version change to `main` starts [the native stable workflow](..GitHub-hosted macOS, Windows, and Linux runners build the advertised desktop targets before theworkflow creates the `vX.Y.Z` tag and GitHub Release. The final job verifies the exact asset namesand `SHA256SUMS`. Missing signing credentials produce unsigned macOS and Windows artifacts.+Unsigned macOS builds still replace Electron's linker-signed stub with a sealed ad-hoc signature+and fail the release if `codesign --verify` fails or the identifier is not `dev.leodoes.akeru`.Complete credentials use the existing Developer ID, notarization, and Azure Trusted Signing paths.See the [release smoke runbook](../operations/release.md) for the exact validation path.diff --git a/docs/internals/scripts.md b/docs/internals/scripts.mdindex ab3171655..68925e28d 100644--- a/docs/internals/scripts.md+++ b/docs/internals/scripts.md@@ -76,7 +76,12 @@ authenticated.### Desktop `.dmg` packaging notes-- Default build is unsigned/not notarized for local sharing.+- Default build is unsigned/not notarized for local sharing. Unsigned macOS builds still apply a+ sealed ad-hoc signature (`identity: "-"`) so Gatekeeper does not treat Electron's leftover+ linker-signed stub as a damaged app. Notarized Developer ID builds require `--signed`.+- Browser DMG downloads are still quarantined. The unsigned Mac path is a Terminal recipe that+ pins one GitHub release tag, downloads that tag's arm64 DMG and `SHA256SUMS`, verifies the+ checksum, then copies the app into `/Applications`. curl does not set `com.apple.quarantine`.- The DMG build uses `assets/prod/akeru-macos-1024.png`, a safe-area export of the productionfavicon artwork, as the production app icon source.- Production DMGs use neutral chrome. Blueprint artwork remains exclusive to Dev builds. Packagingdiff --git a/docs/operations/release.md b/docs/operations/release.mdindex f8cbc6d42..af8c5f067 100644--- a/docs/operations/release.md+++ b/docs/operations/release.md@@ -14,10 +14,12 @@ Dispatch it from Depot with a version such as `0.0.0-smoke.0`.local path outside the repository.- The release configuration passes `scripts/release-smoke.ts`.- macOS builds one arm64 DMG with the `dev.leodoes.akeru` bundle identifier.-- The macOS app uses a Developer ID Application certificate. Electron-builder submits and staples- the app before it packages the DMG. The workflow submits and staples the DMG separately.-- Signed apps always include the Electron hardened-runtime and microphone entitlements.-- The workflow staples and validates the notarization tickets, then runs `codesign` and `spctl`.+- Unsigned macOS builds use a sealed ad-hoc signature. The workflow verifies the signature and the+ `dev.leodoes.akeru` identifier.+- Signed macOS builds use a Developer ID Application certificate. Electron-builder submits and+ staples the app before it packages the DMG. The workflow submits and staples the DMG separately.+- Signed apps include the Electron hardened-runtime and microphone entitlements. The workflow+ validates the notarization tickets, then runs `codesign` and `spctl`.- Windows builds one unsigned x64 NSIS installer.- Linux builds one unsigned x64 AppImage.- The CLI build includes the web client, then completes a package publish dry-run.diff --git a/docs/user/install.md b/docs/user/install.mdindex 76059e092..ea4ee1154 100644--- a/docs/user/install.md+++ b/docs/user/install.md@@ -31,6 +31,60 @@ The command starts the server and opens the local web app. Run this for the compnpx 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 youclose the terminal.diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.tsindex 87df9e320..7722209fc 100644--- a/scripts/build-desktop-artifact.test.ts+++ b/scripts/build-desktop-artifact.test.ts@@ -428,15 +428,9 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {it.effect("applies platform-specific packaging to the build config", () =>Effect.gen(function* () {- const mac = yield* createBuildConfig(- "mac",- "dmg",- "1.2.3",- false,- false,- undefined,- undefined,- );+ const mac = yield* createBuildConfig("mac", "dmg", "1.2.3", false, false, undefined, {+ entitlementsPath: "/tmp/entitlements.mac.plist",+ });const linux = yield* createBuildConfig("linux","AppImage",@@ -508,7 +502,13 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {},]);assert.deepStrictEqual(mac.files, [...DESKTOP_FILE_EXCLUSIONS, ...MAC_FILE_EXCLUSIONS]);- assert.notProperty(mac.mac as Record<string, unknown>, "sign");+ assert.equal((mac.mac as Record<string, unknown>).identity, "-");+ assert.equal((mac.mac as Record<string, unknown>).notarize, false);+ assert.equal(+ (mac.mac as Record<string, unknown>).entitlements,+ "/tmp/entitlements.mac.plist",+ );+ assert.match(String((mac.mac as Record<string, unknown>).sign), /\/scripts\/sign-macos\.ts$/);for (const config of [linux, win]) {assert.deepStrictEqual(config.electronLanguages, DESKTOP_ELECTRON_LANGUAGES);assert.deepStrictEqual(config.files, DESKTOP_FILE_EXCLUSIONS);@@ -1058,6 +1058,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {assert.equal(config.appId, "dev.leodoes.akeru");assert.equal(mac.entitlements, "/tmp/entitlements.mac.plist");assert.equal(mac.notarize, true);+ assert.notProperty(mac, "identity");assert.match(String(mac.sign), /\/scripts\/sign-macos\.ts$/);assert.deepStrictEqual(mac.protocols, [{@@ -1078,6 +1079,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {assert.equal(config.appId, "dev.leodoes.akeru");assert.equal(mac.entitlements, "/tmp/entitlements.mac.plist");assert.notProperty(mac, "provisioningProfile");+ assert.notProperty(mac, "identity");assert.equal(mac.notarize, true);assert.match(String(mac.sign), /\/scripts\/sign-macos\.ts$/);}).pipe(Effect.provide(ConfigProvider.layer(ConfigProvider.fromEnv({ env: {} })))),diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.tsindex 638c3f5f6..f67b6ea04 100644--- a/scripts/build-desktop-artifact.ts+++ b/scripts/build-desktop-artifact.ts@@ -1844,10 +1844,11 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (schemes: ["akeru", "akeru-dev", "t3code", "t3code-dev"],},],- // electron-builder notarizes and staples the signed app before target- // builders package the DMG. CI notarizes the resulting DMG separately.+ // Unsigned builds opt into identity "-" so electron-builder replaces+ // Electron's linker-signed stub. Developer ID builds use CSC_NAME.notarize: signed,- ...(signed ? { sign: path.join(repoRoot, "scripts/sign-macos.ts") } : {}),+ sign: path.join(repoRoot, "scripts/sign-macos.ts"),+ ...(signed ? {} : { identity: "-" }),...(macSigning? {entitlements: macSigning.entitlementsPath,@@ -2634,9 +2635,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ();const macEntitlementsPath =- options.platform === "mac" && options.signed- ? path.join(stageAppDir, "entitlements.mac.plist")- : undefined;+ options.platform === "mac" ? path.join(stageAppDir, "entitlements.mac.plist") : undefined;if (macEntitlementsPath) {yield* fs.writeFileString(macEntitlementsPath, renderMacEntitlements());}diff --git a/scripts/release-smoke.ts b/scripts/release-smoke.tsindex 8d7141737..6503d68f6 100644--- a/scripts/release-smoke.ts+++ b/scripts/release-smoke.ts@@ -183,6 +183,11 @@ assertContains('const DESKTOP_APP_ID = "dev.leodoes.akeru"',"Akeru desktop bundle identifier is missing.",);+assertContains(+ desktopArtifactBuilder,+ 'identity: "-"',+ "Unsigned macOS builds do not opt into a sealed ad-hoc signature.",+);for (const relativePath of [".depot/workflows/release.yml",