Skip to content

The agent that grows with you

feat(icons): layered macOS 26 icon for the bootstrap installer and the DMGs

ethernet383916b845d1
diff --git a/.github/workflows/bootstrap-installer-build.yml b/.github/workflows/bootstrap-installer-build.yml
index dea862f6755..60785d735b5 100644
--- a/.github/workflows/bootstrap-installer-build.yml
+++ b/.github/workflows/bootstrap-installer-build.yml
@@ -209,6 +209,26 @@ jobs:
echo "APPLE_API_KEY_PATH=$RUNNER_TEMP/apple-api-key.p8"
} >> "$GITHUB_ENV"
+ - name: Select Xcode 26 for the macOS 26 layered icon
+ # Tauri's bundler compiles src-tauri/icons/icon.icon to Assets.car with
+ # actool, which only Xcode >= 26 ships; on an older Xcode it logs an
+ # error and ships the .icns alone. The runner keeps an older Xcode
+ # selected, so pick 26 and assert it.
+ run: |
+ xcode="$(ls -d /Applications/Xcode_26*.app 2>/dev/null | sort -V | tail -1)"
+ if [ -z "$xcode" ]; then
+ echo "::error::no Xcode 26 on this runner; the macOS 26 layered icon cannot be compiled"
+ exit 1
+ fi
+ echo "DEVELOPER_DIR=$xcode/Contents/Developer" >> "$GITHUB_ENV"
+ export DEVELOPER_DIR="$xcode/Contents/Developer"
+ version="$(actool --version | python3 -c 'import plistlib, sys; print(plistlib.loads(sys.stdin.buffer.read())["com.apple.actool.version"]["short-bundle-version"])')"
+ echo "actool $version from $xcode"
+ case "$version" in
+ 2[6-9].*|[3-9][0-9].*) ;;
+ *) echo "::error::actool $version cannot compile .icon packages (need >= 26)"; exit 1 ;;
+ esac
+
- name: Build, sign and notarize
env:
# Tauri notarizes the .app with an App Store Connect API key.
@@ -245,6 +265,10 @@ jobs:
codesign --verify --strict --verbose=2 "${apps[0]}"
xcrun stapler validate "${apps[0]}"
spctl -a -vv -t exec "${apps[0]}"
+ # The macOS 26 layered icon: Tauri only logs when actool is missing,
+ # so prove the catalog and its plist key made it into the bundle.
+ test -f "${apps[0]}/Contents/Resources/Assets.car"
+ test "$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconName' "${apps[0]}/Contents/Info.plist")" = "Icon"
dmg="$RUNNER_TEMP/out/Hermes-Setup.dmg"
codesign --verify --verbose=2 "$dmg"
xcrun stapler validate "$dmg"
diff --git a/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-dark.png b/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-dark.png
new file mode 100644
index 00000000000..fb40be1770a
Binary files /dev/null and b/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-dark.png differ
diff --git a/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-light.png b/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-light.png
new file mode 100644
index 00000000000..e039af0fbd0
Binary files /dev/null and b/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-light.png differ
diff --git a/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/mono.png b/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/mono.png
new file mode 100644
index 00000000000..ece3816ad7b
Binary files /dev/null and b/apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/mono.png differ
diff --git a/apps/bootstrap-installer/src-tauri/icons/icon.icon/icon.json b/apps/bootstrap-installer/src-tauri/icons/icon.icon/icon.json
new file mode 100644
index 00000000000..14b1601e687
--- /dev/null
+++ b/apps/bootstrap-installer/src-tauri/icons/icon.icon/icon.json
@@ -0,0 +1,71 @@
+{
+ "fill-specializations": [
+ {
+ "value": {
+ "solid": "srgb:1.00000,1.00000,1.00000,1.00000"
+ }
+ },
+ {
+ "appearance": "dark",
+ "value": {
+ "solid": "srgb:0.05098,0.06667,0.09020,1.00000"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "lighting": "individual",
+ "specular": false,
+ "translucency": {
+ "enabled": false,
+ "value": 0
+ },
+ "shadow": {
+ "kind": "none",
+ "opacity": 0
+ },
+ "blur-material": null,
+ "layers": [
+ {
+ "name": "art",
+ "image-name-specializations": [
+ {
+ "value": "art-light.png"
+ },
+ {
+ "appearance": "dark",
+ "value": "art-dark.png"
+ }
+ ],
+ "glass": false,
+ "hidden-specializations": [
+ {
+ "value": false
+ },
+ {
+ "appearance": "tinted",
+ "value": true
+ }
+ ]
+ },
+ {
+ "name": "mono",
+ "image-name": "mono.png",
+ "glass": true,
+ "hidden-specializations": [
+ {
+ "value": true
+ },
+ {
+ "appearance": "tinted",
+ "value": false
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "supported-platforms": {
+ "squares": "shared"
+ }
+}
diff --git a/apps/bootstrap-installer/src-tauri/tauri.conf.json b/apps/bootstrap-installer/src-tauri/tauri.conf.json
index 2dd8379e33d..a82b4ca703c 100644
--- a/apps/bootstrap-installer/src-tauri/tauri.conf.json
+++ b/apps/bootstrap-installer/src-tauri/tauri.conf.json
@@ -48,7 +48,8 @@
"icons/128x128.png",
"icons/icon.icns",
- "icons/icon.ico"
+ "icons/icon.ico",
+ "icons/icon.icon"
],
"windows": {
"webviewInstallMode": {
diff --git a/apps/desktop/electron-builder.config.cjs b/apps/desktop/electron-builder.config.cjs
index 8f824f6e661..f6e8fdab007 100644
--- a/apps/desktop/electron-builder.config.cjs
+++ b/apps/desktop/electron-builder.config.cjs
@@ -197,6 +197,10 @@ module.exports = {
dmg: {
// Avoid the failing optional APFS shrink pass; keep compressed conversion.
shrink: false,
+ // The volume icon defaults to the packager's icns, which is actool's 256px
+ // fallback whenever `mac.icon` is the Icon Composer package; the DMG is a
+ // Finder volume, not a Dock icon, so it gets the full-resolution .icns.
+ icon: 'assets/icon.icns',
title: 'Hermes Agent Installer',
// A prebuilt .tiff on purpose, not a PNG plus a @2x sibling: dmg-builder's
// PNG path runs `tiffutil -cathidpicheck`, which on macOS 26 rewrites both
diff --git a/scripts/generate_icons.py b/scripts/generate_icons.py
index 32770cf72c7..eb9e34efc1b 100644
--- a/scripts/generate_icons.py
+++ b/scripts/generate_icons.py
@@ -52,7 +52,7 @@ Dependencies:
Pillow and resvg-py are core runtime dependencies; run this file with a
Hermes runtime interpreter (scripts/generate-icons.mjs uses HERMES_PYTHON).
-Outputs (39 files):
+Outputs (43 files):
assets/icon-master.svg generated light master
assets/icon-master-dark.svg generated dark master
apps/desktop/assets/icon.png 1024x1024 squircle (light)
@@ -64,6 +64,7 @@ Outputs (39 files):
apps/desktop/assets/icon.icon/icon.json Icon Composer manifest (macOS 26)
apps/desktop/assets/icon.icon/Assets/art-*.png 1024 girl (+ commit badge), light/dark
apps/desktop/assets/icon.icon/Assets/mono.png 1024 Clear/Tinted material (grayscale + opacity)
+ apps/bootstrap-installer/src-tauri/icons/icon.icon/** same package, unbranded (Tauri bundle.icon)
apps/desktop/assets/appx/Wide310x150Logo.png 310x150, squircle 100 centered
apps/desktop/assets/appx/StoreLogo.png 50x50 squircle
apps/desktop/assets/appx/Square44x44Logo.png 44x44 squircle
@@ -158,6 +159,9 @@ CHECK_SIZES: dict[str, tuple[str, tuple[int, int]]] = {
**({"apps/desktop/assets/icon.icon/Assets/border-light.png": ("PNG", (1024, 1024)),
"apps/desktop/assets/icon.icon/Assets/border-dark.png": ("PNG", (1024, 1024))} if BORDER_ENABLED else {}),
"apps/desktop/assets/icon.icon/Assets/mono.png": ("PNG", (1024, 1024)),
+ "apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-light.png": ("PNG", (1024, 1024)),
+ "apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-dark.png": ("PNG", (1024, 1024)),
+ "apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/mono.png": ("PNG", (1024, 1024)),
"apps/desktop/assets/icon.icon/Assets/art-light.png": ("PNG", (1024, 1024)),
"apps/desktop/assets/icon.icon/Assets/art-dark.png": ("PNG", (1024, 1024)),
"apps/desktop/assets/appx/Wide310x150Logo.png": ("PNG", (310, 150)),
@@ -218,6 +222,12 @@ TARGETS: list[tuple[str, str, object]] = [
("apps/bootstrap-installer/src-tauri/icons/[email protected]", "png", 256),
("apps/bootstrap-installer/src-tauri/icons/icon.ico", "ico", [16, 32, 64, 128, 256]),
("apps/bootstrap-installer/src-tauri/icons/icon.icns", "icns", None),
+ # Tauri's bundler compiles an Icon Composer package from `bundle.icon`
+ # (actool >= 26) into Assets.car; the unbranded twin of the desktop package.
+ ("apps/bootstrap-installer/src-tauri/icons/icon.icon/icon.json", "icon_manifest", None),
+ ("apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-light.png", "icon_art", "black"),
+ ("apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/art-dark.png", "icon_art", "white"),
+ ("apps/bootstrap-installer/src-tauri/icons/icon.icon/Assets/mono.png", "icon_mono", None),
("apps/bootstrap-installer/public/nous-girl.png", "girl_light", 256),
("website/static/img/logo.png", "logo", None),
("website/static/img/logo-dark.png", "logo_dark", None),