A Homebrew tap for STEPSS, Static and Transient Electric Power Systems Simulation. It installs the desktop application on macOS and keeps it current, so a new release arrives through brew upgrade instead of being downloaded once per version.
brew install --cask sps-l/stepss/stepssThereafter:
brew upgrade --cask stepssUninstall with brew uninstall --cask stepss.
The cask brings Homebrew's gcc and openblas with it. That is the reason this route exists alongside the .dmg: the simulation engines load libgfortran and OpenBLAS from Homebrew at run time, and an application installed by hand opens normally and then fails on the first simulation unless both are already there.
If STEPSS is already in Applications from a .dmg, move it to the Trash first. Homebrew does not overwrite an application it did not install.
- Apple Silicon. There is no Intel macOS build of the engines.
- The current release only. The tap serves one version. To install a specific older build, take its
.dmgfrom the releases page. - A network connection on first launch. The application is signed and notarized. The notarization ticket is stapled to the
.dmg, not to the application inside it, so macOS verifies the installed copy with Apple the first time it opens. - This is not an official Homebrew cask, and nothing in it has been through the Homebrew maintainers' review. Naming the cask in full, as the command above does, is what tells Homebrew you trust it;
brew trust sps-l/stepsstrusts the whole tap instead. Homebrew refuses to load a cask from an untrusted third-party tap, so a script that audits or inspects the cask before installing it needsbrew trust --cask sps-l/stepss/stepssfirst.
STEPSS is not Apache 2.0 taken as a whole, and the cask's caveat says so deliberately.
- RAMSES, the dynamic simulation engine, is the property of the University of Liège: proprietary, free for non-commercial use, capped at 1000 buses and 2 cores.
- Helios and CODEGEN are under Academic Public Licences.
- The two user interfaces, stepss-java-ui and stepss-python-ui, are Apache 2.0.
https://stepss.sps-lab.org/getting-started/license/ is the single owner of these facts; everything here is a summary that points at it. Installing through Homebrew agrees to nothing, because the licence appears the first time you launch STEPSS. The .dmg is downloaded from the SPS-L release page and never mirrored here: the licence granted for RAMSES is non-transferable.
Casks/stepss.rb is rewritten by .github/workflows/update-cask.yml, which is triggered four ways:
| Trigger | When |
|---|---|
repository_dispatch (stepss-release) |
stepss-java-ui fires it from the promote job of its release workflow, once the release is published with every platform attached |
schedule, weekly |
insurance, because a dropped or 401ing dispatch is silent on this side |
workflow_dispatch |
by hand |
push to main |
checks a hand edit; rewrites nothing |
tools/update-cask.sh rewrites exactly two lines, version and sha256, and the workflow commits only if they moved. Everything else in the cask is hand-edited. The hash comes from the GitHub API's own per-asset digest. The script never moves the cask backwards: if the newest release carrying a .dmg is older than the cask, the run fails and a person decides.
Nothing is pushed until it has been installed. The job runs on macOS, commits the rewrite locally, installs the cask from that local commit, and runs tools/check-engine-libs.sh, which fails when a bundled engine links a library from a formula the cask does not declare. Only then does it push, so a cask that cannot install never reaches brew upgrade.
- The release asset name is a contract. The cask resolves
STEPSS-<version>.dmgon tagv<version>of stepss-java-ui. Renaming it there breaks every release cut afterwards, and older tags stay un-resyncable because the new name never existed on them. Rename it in both repositories in one pass or not at all. - A published asset must stay where it is. Homebrew downloads an exact URL and verifies an exact digest, so deleting or re-uploading a release asset breaks every install of that version.
| When | Do |
|---|---|
| Every release | Nothing. The dispatch updates the cask; check the run is green. |
.app renamed, or the dmg layout changes |
Edit app in the cask by hand; the workflow only touches version and sha256. |
| Engine linking changes | Adjust depends_on formula:. tools/check-engine-libs.sh names the library. |
| Red run | Read the failing step: brew audit names the stanza, the library check names the library and its formula, and a refused downgrade names both versions. Nothing was pushed. |
| Dropped dispatch | The Monday schedule catches it, or run gh workflow run update-cask.yml. |
Error: Cask 'stepss' is unavailable: use the full namesps-l/stepss/stepss, or runbrew tap sps-l/stepssfirst.Refusing to load cask sps-l/stepss/stepss from untrusted tap: the cask was named without its tap, or the tap was added by hand. Runbrew trust --cask sps-l/stepss/stepss, or install by the full name as above.It seems there is already an App at '/Applications/STEPSS.app': a copy installed from a.dmgis in the way. Move it to the Trash and install again.dyld: Library not loaded: .../libgfortran.5.dylib:gccwas removed after installing. Runbrew install gcc."STEPSS" cannot be opened because the developer cannot be verified: the Mac was offline at first launch. Connect and open it again.- A checksum mismatch on install: the asset was re-uploaded after the cask was written. Run the update workflow.
- stepss-java-ui builds the artifact this serves
- stepss-scoop is the same idea for Windows
- apt.sps-lab.org is the same idea for Debian and Ubuntu
- stepss.sps-lab.org is the documentation