Add branded Finder icon for Probo Agent.app

The macOS URL-handler bundle had no CFBundleIconFile, so
Finder showed the generic app icon after PKG install. Keep a
single master PNG and generate AppIcon.icns at build time
with sips/iconutil, matching the auditor-mode approach.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-07-24 20:06:57 +02:00
parent 002437b568
commit 2532b0bb6b
6 changed files with 79 additions and 3 deletions

View File

@@ -64,6 +64,14 @@ then the app bundle, optionally signs the product with
profile; submits use `--keychain-profile` so the secret is not on
`notarytool submit` argv).
The Finder/Dock icon for `Probo Agent.app` comes from a single master
PNG, `cmd/probo-agent/installer/macos/enroll-ui/Resources/icon-original.png`
(Probo square mark). At PKG build time `build.sh` pads/resizes it with
`sips`, compiles `AppIcon.icns` with `iconutil` under the build stage
directory, and installs it into `Contents/Resources/`. `Info.plist`
sets `CFBundleIconFile` to `AppIcon`. Do not commit generated
`.icns` / iconset PNGs.
There is no unsigned PKG path and no osascript elevation fallback.
Local testing of browser enrollment requires a Developer IDsigned
build. CLI enrollment without the app uses `sudo probo-agent install`.