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.

fix(desktop): adaptive Icon Composer app icon for macOS 26 (#285)

Leod266c13c7178
diff --git a/.changeset/adaptive-app-icon.md b/.changeset/adaptive-app-icon.md
new file mode 100644
index 000000000..1c87576b7
--- /dev/null
+++ b/.changeset/adaptive-app-icon.md
@@ -0,0 +1,5 @@
+---
+"@t3tools/desktop": patch
+---
+
+The macOS app icon now ships as a layered Icon Composer asset, so macOS 26 renders proper light, dark, and tinted variants instead of theming the legacy icon into an unreadable dark-on-dark tile.
diff --git a/.github/workflows/release-smoke.yml b/.github/workflows/release-smoke.yml
index 307b8e5bb..72d192084 100644
--- a/.github/workflows/release-smoke.yml
+++ b/.github/workflows/release-smoke.yml
@@ -53,7 +53,7 @@ jobs:
matrix:
include:
- label: macOS arm64 DMG
- runner: macos-15
+ runner: macos-26
platform: mac
target: dmg
arch: arm64
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5f34fa315..32f94ce35 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -121,7 +121,7 @@ jobs:
matrix:
include:
- label: macOS arm64 DMG
- runner: macos-15
+ runner: macos-26
platform: mac
target: dmg
arch: arm64
diff --git a/assets/prod/akeru.icon/Assets/glyph.png b/assets/prod/akeru.icon/Assets/glyph.png
new file mode 100644
index 000000000..9d47cee25
Binary files /dev/null and b/assets/prod/akeru.icon/Assets/glyph.png differ
diff --git a/assets/prod/akeru.icon/icon.json b/assets/prod/akeru.icon/icon.json
new file mode 100644
index 000000000..883a668bb
--- /dev/null
+++ b/assets/prod/akeru.icon/icon.json
@@ -0,0 +1,20 @@
+{
+ "fill": { "solid": "srgb:0.95686,0.94510,0.91765,1.00000" },
+ "fill-specializations": [{ "appearance": "dark", "value": "system-dark" }],
+ "groups": [
+ {
+ "name": "glyph",
+ "layers": [
+ {
+ "image-name": "glyph.png",
+ "name": "a",
+ "fill-specializations": [
+ { "appearance": "dark", "value": { "solid": "srgb:0.95686,0.94510,0.91765,1.00000" } },
+ { "appearance": "tinted", "value": { "solid": "srgb:1.00000,1.00000,1.00000,1.00000" } }
+ ]
+ }
+ ]
+ }
+ ],
+ "supported-platforms": { "squares": "shared" }
+}
diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts
index 00f60d9a2..0388deca5 100644
--- a/scripts/build-desktop-artifact.test.ts
+++ b/scripts/build-desktop-artifact.test.ts
@@ -180,6 +180,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
it("uses production desktop artwork", () => {
assert.deepStrictEqual(resolveDesktopBuildIconAssets("0.0.17"), {
macIconPng: BRAND_ASSET_PATHS.productionMacIconPng,
+ macIconComposer: BRAND_ASSET_PATHS.productionMacIconComposer,
linuxIconPng: BRAND_ASSET_PATHS.productionLinuxIconPng,
windowsIconIco: BRAND_ASSET_PATHS.productionWindowsIconIco,
});
diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts
index 907887a2e..6941280b3 100644
--- a/scripts/build-desktop-artifact.ts
+++ b/scripts/build-desktop-artifact.ts
@@ -99,6 +99,7 @@ const readWorkspaceConfig = Effect.fn("readWorkspaceConfig")(function* () {
interface DesktopBuildIconAssets {
readonly macIconPng: string;
+ readonly macIconComposer: string;
readonly linuxIconPng: string;
readonly windowsIconIco: string;
}
@@ -1546,7 +1547,12 @@ function generateMacIconSet(
});
}
-function stageMacIcons(stageResourcesDir: string, sourcePng: string, verbose: boolean) {
+function stageMacIcons(
+ stageResourcesDir: string,
+ sourcePng: string,
+ composerSource: string,
+ verbose: boolean,
+) {
return Effect.gen(function* () {
const fs = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
@@ -1564,6 +1570,11 @@ function stageMacIcons(stageResourcesDir: string, sourcePng: string, verbose: bo
const iconPngPath = path.join(stageResourcesDir, "icon.png");
const iconIcnsPath = path.join(stageResourcesDir, "icon.icns");
+ // Stage the Icon Composer bundle so electron-builder compiles an asset
+ // catalog with light, dark, and tinted variants. macOS 26 themes legacy
+ // .icns icons itself, which turned the cream tile black in dark mode.
+ yield* fs.copy(composerSource, path.join(stageResourcesDir, "akeru.icon"));
+
yield* runCommand(ChildProcess.make({})`sips -z 512 512 ${sourcePng} --out ${iconPngPath}`, {
label: "sips mac icon",
verbose,
@@ -1776,6 +1787,7 @@ export function resolveDesktopWebAssetBrand(version: string): WebAssetBrand {
export function resolveDesktopBuildIconAssets(_version: string): DesktopBuildIconAssets {
return {
macIconPng: BRAND_ASSET_PATHS.productionMacIconPng,
+ macIconComposer: BRAND_ASSET_PATHS.productionMacIconComposer,
linuxIconPng: BRAND_ASSET_PATHS.productionLinuxIconPng,
windowsIconIco: BRAND_ASSET_PATHS.productionWindowsIconIco,
};
@@ -1857,7 +1869,10 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
const repoRoot = yield* RepoRoot;
buildConfig.mac = {
target: target === "dmg" ? [target, "zip"] : [target],
- icon: "icon.icns",
+ // The .icon bundle is preferred by electron-builder: it compiles an
+ // asset catalog for macOS 26 theming and derives the legacy icns from
+ // the same source for older systems.
+ icon: "akeru.icon",
category: "public.app-category.developer-tools",
extendInfo: {
NSMicrophoneUsageDescription: "Akeru Bot uses the microphone for calls with your bots.",
@@ -1975,7 +1990,12 @@ const assertPlatformBuildResources = Effect.fn("assertPlatformBuildResources")(f
verbose: boolean,
) {
if (platform === "mac") {
- yield* stageMacIcons(stageResourcesDir, iconAssets.macIconPng, verbose);
+ yield* stageMacIcons(
+ stageResourcesDir,
+ iconAssets.macIconPng,
+ iconAssets.macIconComposer,
+ verbose,
+ );
return;
}
@@ -2659,6 +2679,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
stageResourcesDir,
{
macIconPng: path.join(repoRoot, iconAssets.macIconPng),
+ macIconComposer: path.join(repoRoot, iconAssets.macIconComposer),
linuxIconPng: path.join(repoRoot, iconAssets.linuxIconPng),
windowsIconIco: path.join(repoRoot, iconAssets.windowsIconIco),
},
diff --git a/scripts/ci-workflow-policy.test.ts b/scripts/ci-workflow-policy.test.ts
index a8ac2a6b3..fdf018f1e 100644
--- a/scripts/ci-workflow-policy.test.ts
+++ b/scripts/ci-workflow-policy.test.ts
@@ -176,7 +176,7 @@ describe("CI workflow budget", () => {
expect(text).not.toContain("depot-");
expect(text).toContain("tenki-standard-medium-4c-8g");
- expect(text).toContain("runner: macos-15");
+ expect(text).toContain("runner: macos-26");
expect(text).toContain("windows-2025");
expect(Object.keys(releaseSmoke.jobs).length).toBeGreaterThan(0);
});
diff --git a/scripts/lib/brand-assets.ts b/scripts/lib/brand-assets.ts
index 03762c936..f6de427a8 100644
--- a/scripts/lib/brand-assets.ts
+++ b/scripts/lib/brand-assets.ts
@@ -1,6 +1,7 @@
export const BRAND_ASSET_PATHS = {
productionIosIconPng: "apps/marketing/public/icon.png",
productionMacIconPng: "assets/prod/akeru-macos-1024.png",
+ productionMacIconComposer: "assets/prod/akeru.icon",
productionLinuxIconPng: "apps/marketing/public/icon.png",
productionWindowsIconIco: "apps/web/public/favicon.ico",
productionWebFaviconIco: "apps/web/public/favicon.ico",
diff --git a/scripts/release-smoke.ts b/scripts/release-smoke.ts
index 0f7cfd57c..fb2f0854d 100644
--- a/scripts/release-smoke.ts
+++ b/scripts/release-smoke.ts
@@ -67,7 +67,7 @@ for (const [needle, label] of [
["label: macOS arm64 DMG", "macOS arm64 DMG"],
["label: Windows x64 NSIS", "Windows x64 NSIS"],
["label: Linux x64 AppImage", "Linux x64 AppImage"],
- ["runner: macos-15", "GitHub-hosted Apple Silicon macOS runner"],
+ ["runner: macos-26", "GitHub-hosted Apple Silicon macOS runner"],
["runner: windows-2025", "GitHub-hosted Windows runner"],
["runner: tenki-standard-medium-4c-8g", "4-vCPU Tenki Linux runner"],
[
@@ -109,7 +109,7 @@ for (const [needle, label] of [
["label: macOS arm64 DMG", "macOS arm64 DMG"],
["label: Windows x64 NSIS", "Windows x64 NSIS"],
["label: Linux x64 AppImage", "Linux x64 AppImage"],
- ["runner: macos-15", "GitHub-hosted Apple Silicon macOS runner"],
+ ["runner: macos-26", "GitHub-hosted Apple Silicon macOS runner"],
["runner: windows-2025", "GitHub-hosted Windows runner"],
["runner: tenki-standard-medium-4c-8g", "Tenki Linux runner"],
["macOS signing credentials must be either complete or absent.", "macOS signing mode"],