Getting started
SofCat has two halves. A repository on any web server holds manifests, catalogs and the items themselves. An agent on each machine reads its manifest from that repository, keeps the required items in place, and lets a self-service app install the optional ones for standard users.
Install on Windows
Section titled “Install on Windows”-
Download
sofcat-<version>-x86_64-setup.exefrom the Download page and install it from an elevated prompt:Terminal window .\sofcat-<version>-x86_64-setup.exe /SThe installer puts
sofcat.exe,sofcat-ui.exeandsofcat-useragent.exe, the per-user helper, inC:\Program Files\SofCat, registers and starts thesofcatservice, adds a Start-menu shortcut and an Add or remove programs entry, and registers the helper to run at logon. It ships no config. -
Write
C:\ProgramData\SofCat\config.yamland point it at your repository:url: https://example.com/sofcat/manifest: example_manifestcatalogs:- example_catalogOr set the same keys from MDM or Group Policy, which win over the file (Managed settings).
-
Restart the service:
Terminal window Restart-Service sofcat
Everything the service writes lives under C:\ProgramData\SofCat; see
Data directory.
To upgrade, run a newer setup.exe /S over the install. It stops and removes
the service, replaces the program files, and registers and starts the
service again; C:\ProgramData\SofCat stays as it is. The service keeps
the config path it was registered with (-c). Its startup type goes back to
Automatic and its account to LocalSystem, whatever they were changed to.
Running the same version again restarts the service. A failed upgrade
restores the previous program files and Add or remove programs entry, and
reinstalls the previous service with the same config path. If the Services console or another program
holds the service open, Windows only marks it for deletion, and the
previous service cannot come back: there is none until that handle closes,
and the next setup.exe then installs normally. A service that does not stop
in time stays registered but may stay stopped until a reboot. The installer
refuses a version older than the installed one, a sofcat service it did
not install, a sofcat service whose command line was changed from the one
sofcat.exe -serviceinstall registers, a config file the service could
not read or parse, and an install made with /D=, which is not upgraded in
place. The upgrade ends a running per-user helper and closes an open
storefront. The helper starts again at the user’s next logon, or sooner
when the service stores a changed plan; the storefront stays closed until
the user opens it.
To remove SofCat, run
"C:\Program Files\SofCat\uninstall.exe" /S. It removes the service and the
program files, closes the storefront if it is open, and leaves
C:\ProgramData\SofCat alone. The install and the uninstall record each step
in the Windows Application log under the source sofcat; see
Event log.
Release builds are Authenticode-signed; a build of your own is unsigned unless you set the signing variables.
Install on macOS
Section titled “Install on macOS”Download sofcat-<tag>.pkg from the
Download page. It is signed
with a Developer ID and notarized, and built for Apple silicon (arm64) only.
It needs macOS 13 or later.
For an Intel Mac, build one on that Mac from a checkout with just pkg (see
Developer notes for the toolchain); it is unsigned
unless you set the signing variables. The release
also has sofcat-<tag>-darwin-arm64.tar.gz, the same CLI, per-user helper and
app without the installer.
Install the pkg, write the config and restart the daemon:
sudo installer -pkg sofcat-<tag>.pkg -target /sudo install -m 600 -o root -g wheel config.yaml "/Library/Application Support/SofCat/config.yaml"sudo launchctl kickstart -k system/ca.hrndz.sofcatThe package installs the app in /Applications, the CLI in
/Library/Application Support/SofCat/bin/sofcat and a launchd daemon. The
daemon keeps its state in /Library/Application Support/SofCat/Data, which
only root can read. The config stays root-owned and 0600, since it can hold
auth_pass. A configuration profile can set the same keys instead
(Managed settings).
Publish a repository
Section titled “Publish a repository”The repository is plain YAML and files served over HTTP(S):
- a manifest per machine or group says what it gets: required items, optional items for the self-service app, removals and updates;
- catalogs say what exists, with each item’s installer, version and checks;
- the items themselves (
.msi,.msix,.exe,.ps1,.nupkg, zips); - optionally
icons/, the images the storefront shows for items that name one.
makecatalogs builds catalogs/<catalog>.yaml from the repository’s
packages-info/*.yaml, each named after its item_name. It is a standalone
binary for Linux, macOS and Windows, so the repository’s CI does not need a
Windows runner. Run makecatalogs --check <repo_path> as a pull-request
gate; it fails on a file whose item_name is not its file name.
makecatalogs import <repo_path> <installer> adds an installer to the
repository, as munkiimport does for Munki. It copies the file in and writes
its package-info file with the hash; see
Add it to the repository.
Configuration lists the annotated example files to start from.