Skip to content

Rebranded builds

A rebranded build ships SofCat under your own name, with its own icon, service, installer and policy key. The idea is the one munki-rebrand applies to Munki. The result is a separate product, so you need a rebrand only when settings are not enough. For the look alone, see Branding.

A brand is a directory. Copy the example from examples/brand, edit it and build:

Terminal window
mkdir -p branding && cp -R examples/brand branding/acme
# edit branding/acme/brand.env, add the icons
just brand=branding/acme setup # -> build/acme-apps-<version>-x86_64-setup.exe

just brand=<dir> build builds the three executables without the installer. <dir> is relative to the checkout or absolute, and may live outside it. Keep brands under branding/, which git ignores.

File Required Used for
brand.env yes Names, publisher, identifier and installer allowlist; see brand.env.
icon.ico no Exe icon (Explorer, Start menu, Add or remove programs). Defaults to the SofCat icon.
icon.png no Window and taskbar icon (256x256 is best) and the app-bar mark when no runtime logo is set. Defaults to the SofCat icon.
loading.gif no The mark on the loading screen, which shows while the storefront first connects to the service. It is drawn in a 72px square; an animated GIF plays, except for a user who asked for reduced motion, who sees icon.png. Defaults to icon.png.
write-roots.yaml no Where zip items may be placed, compiled in. Defaults to ${ProgramData}\<NAME> on Windows and /Library/Application Support/<NAME> on macOS, the directory holding the config and Data. Managed policy can add more. See Write roots.
branding.yaml no Storefront branding compiled into the service, which no config or policy overrides. See Built-in branding.

A shell file that the build sources. Every key is optional and falls back to stock SofCat. SLUG, NAME and IDENTIFIER must all change together, because the service, pipe, ProgramData folder, policy key, installer identity and launchd label derive from them.

Terminal window
SLUG=acme-apps
NAME="Acme Software Center"
IDENTIFIER=com.example.softwarecenter
PUBLISHER="Acme Corp"
DESCRIPTION="Install and update Acme-approved software"
HOMEPAGE=https://help.example.com/software
#INSTALLERS=zip
#LOADING_TEXT="Getting your software ready…"
#LOADING_ALWAYS=true
#LOADING_SECONDS=3

The service name, the pipe prefix (<slug>-service), the executable names (<slug>.exe, <slug>-ui.exe and <slug>-useragent.exe) and the %LocalAppData% folder. Use 2 to 32 characters from a-z, 0-9 and -.

The display name. It appears in the Start menu, Add or remove programs, the window title and the version resource. It also names C:\Program Files\<NAME>, C:\ProgramData\<NAME> and the branding policy key HKLM\SOFTWARE\Policies\<NAME>\branding.

A reverse-DNS string. It is the installer’s package identifier and the macOS launchd label, bundle identifier and package identifier, so keep it stable across releases.

The publisher name in the installer and in Add or remove programs.

A one-line description, in the installer metadata and on the Start-menu shortcut.

The product’s web page, in the installer metadata. It must be an http or https URL.

An installer allowlist. Unset builds every installer type. zip builds all three binaries zip-only: they contain no command installer (msi, exe, ps1, msix, nupkg) and reject catalog items that need one. Catalog scripts stay in every build. brand-check rejects any other value. See Zip-only builds.

The line on the loading screen, which shows while the storefront first connects to the service. One line, without <, > or &. Defaults to “Connecting to the <NAME> service…”.

Shows the loading screen on every launch of the storefront, as a short splash: also when a saved list could show at once and when the service answers at once. It stays up for at least LOADING_SECONDS, and longer while the service has not answered and there is no saved list, as without it. A failed first try gives way to the page and its Retry once that time is up. The splash shows once per launch: not on a refresh, a Retry or a reload of the page. Unset (the default) or 1/true; brand-check rejects any other value. Build-time, like LOADING_TEXT: the branding settings arrive with the answer the screen waits for.

The least time, in seconds from the storefront’s start, that the splash stays up. A number from 0.1 to 30 with at most one decimal place, such as 3 or 1.5; tenths are as fine as a splash needs. Defaults to 3. It has no effect without LOADING_ALWAYS, but brand-check checks it either way.

just brand-check validates the values on its own. Every brand build runs it first.

just brand=<dir> build-macos pkg builds the same brand as build/<SLUG> and build/<NAME>.app, with IDENTIFIER as the bundle identifier and the icon made from icon.png. It wraps them in an unsigned build/<SLUG>-<version>.pkg that installs a launchd daemon labelled IDENTIFIER. To sign and notarise the result, see Code signing.

A rebranded build shares nothing with stock SofCat. Its service, pipe, data folder and policy key derive from SLUG and NAME, so it installs beside stock SofCat or another brand, as long as each brand’s SLUG, NAME and IDENTIFIER differ.

Its runtime branding still comes from config.yaml or from managed settings, under HKLM\SOFTWARE\Policies\<NAME>\branding on Windows and its own managed preferences plist on macOS. The exception is any field the build fixes with a branding.yaml. See Delivering settings.

A branding.yaml in the brand directory gives the build its own storefront branding, with no config.yaml or policy needed. It holds the keys of config.yaml’s branding: block at the top level:

title: Acme Software Center
tagline: Install and update Acme-approved software
accent: "#0a66c2"
link_url: https://help.example.com/software
link_label: Get help
sections: [Apps, Tools]

A field set here is fixed. It wins over config.yaml and managed settings, and changing it takes a new build. A field left out still comes from managed settings or config.yaml, so set only what every deployment of the build must share. A deployment can take its url and manifest from MDM and its look from the build.

Only branding keys are allowed. brand-check fails on any other key, so a build never carries a repository URL.

logo and background_image are paths on the managed machine, and the build installs no file there. Leave them out unless your own packaging puts the images in place. The brand’s icon.png is already the app-bar mark when no logo is set.