Releases are deliberate operations that an agent can complete end to end. Development lands
on main; pushing the selected commit to release builds all packages and creates a draft
GitHub Release. Publishing that verified draft is a separate operation. Pushing to main or
pushing a tag does not start the release workflow. There is no automatic commit-message-based
version bump and no patch release for every merge.
Every release asset, binary, installer product name and package uses the SolidCraft name
(solidcraft-<version>-linux-<arch>.AppImage, SolidCraft-<version>-windows-x64.exe,
solidcraft-cli archives, …). The old name survives only in the shims listed in
compatibility.md (the end-of-life Flatpak refs of the old Linux app ID, the legacy .zsync and .flatpakrepo
copies, the deprecated old-name CLI alias); keep them until that document says they can go. Do not
rewrite published assets, checksums, tags or historical release notes of earlier versions.
The raw SolidCraft-<version>-windows-x64.exe (about 400 MB uncompressed) is still published
because SolidCraft 0.53 and older update a standalone .exe from it. From 0.54 the updater takes
the same solidcraft.exe from solidcraft-windows-x64-portable.zip instead and uses the raw
.exe only when a release has no zip. Stop publishing the raw .exe two minor releases after
that updater shipped (from 0.56), and say so in that release's notes.
The main installers (.msi, portable .zip, .dmg, .AppImage, .deb, .rpm, .flatpak, .snap) are
also attached without the version in their names, for example solidcraft-windows-x64.msi and
solidcraft-linux-x86_64.AppImage, and listed in SHA256SUMS.txt. The README's Download section
links to https://github.com/bherbruck/solidcraft/releases/latest/download/<name>, which follows
the release marked latest; nightlies never are. Keep these names stable: renaming one breaks the
README links and the in-app update check, which picks them by name (crates/ui-egui/src/update.rs;
updates and privacy).
Project Pages publishes the documentation, browser app and published-release Flatpak
repository under /solidcraft/. Do not add a separate owner-site publisher or permanent
old-name Pages/Flatpak aliases. GitHub repository redirects are separate from Pages hosting;
verify the new project URLs after deployment.
The browser app keeps itself for offline use (apps/solidcraft-web/sw.js). Browsers keep that
service worker after the code that registered it is gone, so to switch it off deploy
apps/solidcraft-web/sw.js unbuilt (as trunk serve builds do): it deletes what it kept and
unregisters. A site without build.json is also safe: launches then go to the network.
The site serves the web app three ways (packaging/web-channels.sh, run by pages.yml):
/app/ is the web zip attached to the latest release that is not a pre-release, /app-rc/ the
zip of the newest published v*-rc.N pre-release (a page saying there is none, when it is not
newer than the release), and /app-edge/ the build of main. Publishing a release or
pre-release deploys the site again through flatpak-pages.yml. The directories are separate
because a service worker controls everything beneath its own, and each pre-release channel keeps
its browser storage under its own names (apps/solidcraft-web/src/channel.rs), so a design saved
in one can't reach another. Nightly tags (vX.Y.Z-nightly...) are not release candidates.
release.yml also runs at midnight in America/New_York (Eastern time, following daylight
saving time). GitHub may start scheduled runs later when its runners are busy.
Before building, it compares the exact scheduled main commit with the tag of the most
recently published release, including prereleases. If the commits match, all packaging and
publication jobs are skipped: no new version, tag, or release is created. Drafts do not count
as published releases, so a failed build or publication can be retried the following night.
Changed commits use the existing package build and validation jobs. Only after all jobs
succeed, the workflow stages the assets in a draft and publishes a prerelease named
v<workspace-version>-nightly.<YYYYMMDD>.<run-number>.<run-attempt> with checksums and generated
notes. Any existing workspace prerelease suffix is replaced by the nightly suffix. Dates
use Eastern time; package versions are overridden without changing Cargo.toml or Cargo.lock,
so the binaries' embedded Cargo version remains the workspace version. Nightlies do not
replace the latest stable release or advance the release branch. The normal deliberate
release process below continues to create drafts for separate verification and publication.
Nightly publication uses GITHUB_TOKEN, so it does not trigger the downstream Flatpak Pages
deployment. The stable Flatpak repository is not automatically updated with nightly builds.
- Fetch
originand its tags. Inspect the previous published release and the changes since it. Choose one version for the complete batch, based on user-visible behavior:- Patch: compatible fixes, reliability improvements, and packaging corrections.
- Minor: new compatible capabilities. While on
0.x, also use a minor bump for breaking changes and explain the break and any migration in the notes. - Major: incompatible public behavior or file-format/API changes after
1.0. Moving to1.0is an explicit product decision, not something inferred from a commit prefix. - Use
-rc.1,-rc.2, etc. when a release candidate is requested. Documentation-only changes normally wait for the next release. State the reason for the chosen bump in the release notes. Follow any version or release scope specified by the owner.
- Update
[workspace.package] versionin rootCargo.toml. Then runcargo update --workspace --offlineto refresh the workspace packages' versions inCargo.lock(it changes only our own crates, never dependency versions, and needs no network). Inspect the diff: onlyversion =lines of workspace crates should change. SolidCraft does not currently implementcargo xtask version set. - Fix the file format numbers: run
scripts/fold-format-pending.sh. It moves the pending format changes of designs (crates/doc/src/format/pending/*.rs) and of drawings (crates/doc/src/drawing/format/pending/*.rs) into each one's nextv<N>/folder, so the release writes and reads those numbers for good, and does nothing for a family with nothing pending. Commit the move with the version files. (CONTRIBUTING.md, "Changing the design file format".) - Run
cargo xtask ciand the packaging checks in.github/workflows/packaging-lint.yml. Commit the version files through the normal review flow and land them onmain. Do not use[skip ci]. Record the exact commit SHA to release. If it changes, revalidate it.
Use an authenticated maintainer account or GitHub App with the repository's normal release permissions. Follow branch rules; never force-push or bypass required checks.
git fetch origin --tags
git switch release
git merge --ff-only origin/release
git merge --ff-only origin/main
git push origin releaseFor the first release, after this workflow has landed on main, create release from the
validated origin/main commit (git switch -c release origin/main) and push it. If the branch
already exists, use the commands above. Do not create the branch from unrelated work. If a
fast-forward fails, inspect and resolve the divergence through the normal review flow.
Find the release.yml Actions run for the recorded SHA and release branch, and monitor that
specific run. The workflow builds Linux (both architectures, including Flatpak), macOS,
Windows, FreeBSD, and web packages. Once every required job succeeds it creates a draft
SolidCraft v<version> with the artifacts, SHA256SUMS.txt, install notes, and generated changes.
The Flatpak is not required. A failed Flatpak job (a Flathub outage, an aarch64 failure) leaves that bundle out of the draft: the run shows the Flatpak job red and a "Flatpak left out" warning, and every other package is staged as usual. To add the Flatpak while the release is still a draft, re-run the run's failed jobs:
gh run rerun <run-id> --repo tangency-labs/solidcraft --failedThat rebuilds the Flatpak and runs the release job again, which replaces the draft's asset set (with new checksums) and does not upload the snaps a second time. The release can also be published without it: the Flatpak repository then keeps its previous build for that architecture until a later release carries one, and the in-app updater, the other packages and the site are unaffected.
The generated changes list is grouped by area: GitHub reads .github/release.yml, whose categories
name the repository's own labels — the area:* labels, of which triage gives the ones it knows
from changed paths, and the labels triage never gives (accessibility, documentation, ci, and
the dependencies, rust and python labels a dependency update carries) — ending with an "Other
changes" category that takes every pull request carrying none of the labels the categories name.
When triage adds an area label, add it to that file or its changes land under "Other changes".
A second push with the same untagged version can rebuild and replace that draft's complete asset set. Existing release notes are preserved on rebuild; refresh their changes section if new commits were added. An existing tag or published release is never overwritten. Use a new version after publication. Do not push the version tag yourself: publishing the draft creates it at the draft's target commit.
packaging/macos/package.sh builds the .dmg with dmgbuild
(MIT; hash-pinned in packaging/macos/dmg-requirements.txt, installed into a throwaway venv under
target/). It writes the Finder layout, the background and the icon positions straight into the
image, so the build needs no Finder session or AppleScript, which are unreliable on CI runners.
The look lives in assets/platforms/macos/dmg/: layout.json (window size, icon size and
positions, shared by both files below), settings.py (the dmgbuild settings) and background.tiff
(a blueprint sheet, 540×360 pt, with a 1x and a 2x representation so Retina screens get the sharp one). Change the art with
make_background.py (needs Pillow; its docstring has the commands), view the result by mounting the
image, and commit the TIFF with the script. Rules the design follows:
- The title bar adds to the window rectangle (
title_barinlayout.json, 32 pt on macOS 27); the content area must equal the background's size. Older macOS versions have a thinner title bar and were not checked. - Finder draws the icon names itself, black in Light and white in Dark appearance, and art cannot change that. Each name therefore sits on a mid-tone plate that both colours read on. Keep the plates under the icons if you move them.
README.txtstays on the disk but is hidden (SetFile -a V), so the window stays calm.
package.sh mounts the finished image and checks the layout files, the volume icon, the bundle and
its signature. hdiutil prints deprecation warnings on macOS 27 (dmgbuild still uses it); if a
later macOS removes it, dmgbuild needs a release that uses diskutil image.
Items to carry into the next release's notes (step 3 below), then remove from here:
- None yet.
When the task authorizes shipping a release, agents should complete these steps without requiring the owner to click through the GitHub UI. A request only to prepare a release or change release infrastructure does not itself request publication of the application.
-
Confirm that the workflow run succeeded for the intended SHA (or failed only in a Flatpak job, with the release job green) and that the matching release is still a draft targeting that SHA. Avoid publishing while another release build is active.
-
Download all assets to a fresh directory. Run
sha256sum --check SHA256SUMS.txtand check that every expected platform/architecture is present (a missing Flatpak does not block publication; see above). Smoke-test the built CLI's--versionand an example model on an available platform. Inspect the package-check job output for other platforms; report any platform you could not exercise yourself. -
Review the generated notes. Add a concise description of features, fixes, breaking changes, and known limitations. Keep the installation instructions. The macOS app is Developer ID signed and notarized only when the build summary says so, and the Windows files are signed only when it says which SignPath policy signed them (
test-signingis a self-signed test certificate that Windows does not trust); other packages are unsigned. Do not claim otherwise. Resolve failed checks or missing artifacts (a Flatpak excepted) before publication. -
Publish the verified draft using
ghor the equivalent GitHub release API. For example:# Substitute the version that was actually built and verified. gh release edit v0.2.0 --draft=false --latest # For a release candidate instead: gh release edit v0.2.0-rc.1 --draft=false --prerelease --latest=false
-
Confirm that the release is public and its tag resolves to the recorded SHA. Report the release URL, version, checks performed, and any remaining limitations.
-
When a release becomes Latest (published as one, or a pre-release flipped to a release), update solidcraft.io's download links. The website builds its pages from a checked-in snapshot of the latest release; its Release sync workflow refreshes it on a schedule, but start it right away:
gh workflow run release-sync.yml -R tangency-labs/website
When the run has pushed and Cloudflare Pages has deployed,
curl -s https://solidcraft.io/download/(no JavaScript) shows the new version in its links. A failed run leaves the site on the older release, so check it rather than assume.
gh workflow run release.yml --ref <branch> -f draft=false builds packages and uploads the
release-assets Actions artifact without creating or publishing a release. For an explicit
retry that creates/updates a draft, use --ref release -f draft=true. Draft creation from
another branch is rejected. A rerun must still use an unpublished, untagged version.
For a one-off build of any branch, tag, SHA or pull request, without a release: test-build.yml
builds on Blacksmith, unsigned, in about ten minutes, and keeps the result as a workflow artifact
for 7 days (solidcraft-<shortsha>-<platform>).
- Actions > Test build > Run workflow: a
ref(defaultmain) and a platform (windows-portable,linux-appimage,macos-dmgorall), orgh workflow run test-build.yml -f ref=<ref> -f platform=<platform>. - On a pull request, a maintainer adds
build:windows,build:linux,build:macosorbuild:all. The PR's head is built (fork PRs too, with no secrets), one comment on the PR is edited with the artifact link and the SHA, and the label comes off so it can be added again.
The packaging is the release's own scripts. The Windows build is just the portable zip
(solidcraft.exe and the CLI), Linux is the x86_64 AppImage, macOS is an ad-hoc signed Apple Silicon
dmg (first launch needs right-click > Open). The version is <Cargo.toml version>-test+<shortsha>,
so About shows a test build and the in-app updater treats it like a development build and never
offers an update. One build per ref and platform runs at a time; a newer request cancels the older.
The Flatpak repository proposed in PR #39 consumes published releases, not these drafts.
Keep that deployment separate from building the application. A publication made with an
Actions GITHUB_TOKEN does not trigger downstream release: published workflows; in that
case explicitly dispatch the Flatpak workflow with the published tag, or use an appropriately
authorized maintainer/App token for publication. Do not assume the repository updated: check
the deployment run. The Flatpak workflow requests the shared Pages workflow with that tag;
Pages assembles the documentation, browser app, and Flatpak repository together. Ordinary
docs updates include the latest stable Flatpak release too. Verify the resulting Pages run,
not only the dispatch job, so a release cannot erase the docs or app and docs updates cannot
erase the package repository.
Only one Pages run waits at a time, so a later push to main cancels the release's own Pages
request; that later run includes the release, but if it fails nothing deploys. The Flatpak workflow
therefore also runs hourly: when flatpak/index.html names an older release than the latest stable
one and no Pages run is queued, it requests one for the latest tag, once per commit on main. If
that run fails too, the hourly check fails until a Pages run succeeds.
A release without a Flatpak bundle for an architecture still deploys: Pages warns, keeps that architecture's previous build in the repository and imports the bundles the release has.
Every release and nightly attaches solidcraft-<version>-linux-<arch>.snap for x86_64 and
aarch64 (packaging/linux/snap-pack.sh, manifest packaging/linux/snap/snapcraft.yaml). Like the
Flatpak, it repackages the Linux job's tarball. The snap job installs it with --dangerous,
starts the confined app on headless X11 and Wayland (packaging/linux/snap-smoke.py), models a
box over the control channel and keeps the captured frames as the snap-smoke-<arch> artifact.
The Snap Store steps run only when the SNAPCRAFT_STORE_CREDENTIALS repository secret exists;
without it they are skipped and the .snap files are still attached to the release:
- nightlies are uploaded to
latest/edge; - release drafts (pushes to
release) are uploaded tolatest/candidate, after every package built and the draft was staged; - publishing a non-prerelease GitHub release runs
snap-store.yml, which promoteslatest/candidatetolatest/stable. As with the Flatpak repository, a publication made withGITHUB_TOKENdoesn't trigger it: then rungh workflow run snap-store.yml.
To enable the Snap Store once (owner):
-
Sign in at https://snapcraft.io with an Ubuntu One account and register the name at https://snapcraft.io/register-snap (or
snapcraft loginthensnapcraft register solidcraft). -
On a machine with snapcraft (
sudo snap install snapcraft --classic), export upload-only credentials for this snap:snapcraft export-login --snaps=solidcraft \ --channels=edge,candidate,stable \ --acls=package_access,package_push,package_update,package_release \ --expires=2027-10-01 solidcraft-store-credentials.txt
-
Store them as the repository secret and delete the file:
gh secret set SNAPCRAFT_STORE_CREDENTIALS -R bherbruck/solidcraft < solidcraft-store-credentials.txt rm solidcraft-store-credentials.txt
-
Optional: fill in the store listing at https://snapcraft.io/solidcraft/listing (the icon, summary and description come from the snap; add screenshots and the category "Art and design").
-
The next nightly fills
edgeand the next release fillscandidate, thenstableon publication. To fillstablefrom an already published release right away, download its.snapfiles and runsnapcraft upload --release=stable <file>for each.
Renew the credentials before --expires by repeating steps 2 and 3. The snap uses strict
confinement and only plugs that connect automatically, apart from removable-media, which users
connect with sudo snap connect solidcraft:removable-media (getting-started.md).
SolidCraft is not in winget-pkgs yet: its first
version, as bherbruck.SolidCraft, has to be submitted and merged there once (by hand, with
Komac or wingetcreate) before winget install bherbruck.SolidCraft finds it. A first
submission, for 0.21.0, is already open as
microsoft/winget-pkgs#452486 (flagged
Validation-Executable-Error): take that one up rather than opening another. Until then the
README and downloads don't offer the command (#5734); add it back when the
package is listed. After that first version, publishing a non-prerelease
GitHub release runs winget.yml, which uses Komac
(a pinned, checksum-verified binary) to open a pull request at microsoft/winget-pkgs from the
owner's fork bherbruck/winget-pkgs. It submits the three versioned MSIs
(solidcraft-<version>-windows-{x64,x86,arm64}.msi, never the fixed-name copies), reads their
product codes, links the release notes and keeps the other fields from the previous version's
manifest. The winget-pkgs bots validate it and a moderator merges it, usually within a day or two.
The job does nothing, successfully, while the WINGET_TOKEN repository secret is missing or
before the package's first version is merged into winget-pkgs. Like snap-store.yml, a
publication made with GITHUB_TOKEN doesn't trigger it: then run
gh workflow run winget.yml -R bherbruck/solidcraft -f tag=v<version>.
To enable it once (owner):
-
Create a classic personal access token at https://github.com/settings/tokens/new (Settings > Developer settings > Personal access tokens > Tokens (classic)): note "solidcraft winget", an expiry such as one year, and only the
public_reposcope. Fine-grained tokens can't open pull requests on microsoft/winget-pkgs. -
Store it as the repository secret (paste the token when asked):
gh secret set WINGET_TOKEN -R bherbruck/solidcraft -
Keep the fork
bherbruck/winget-pkgs(Komac pushes its branches there). Its default branch doesn't need syncing.
Install scope. The MSI installs for all users by default and just for the user with
ALLUSERS=2 MSIINSTALLPERUSER=1. WinGet doesn't pass either by itself: a manifest that only
says Scope: machine (as the winget-pkgs one does) keeps installing for all users, unchanged.
To offer winget install --scope user, the manifest needs a second installer entry per
architecture, with the same URL, hash and product code, plus:
Scope: user
InstallerSwitches:
Custom: ALLUSERS=2 MSIINSTALLPERUSER=1and the existing entries Scope: machine. That first edit is made by hand in the winget-pkgs
pull request of the first release with the scope choice. Komac copies the other fields from the
previous manifest, so later updates should keep both entries; check the next one does.
When the token expires, create a new one the same way and run step 2 again. If a release was
published while the secret was missing or expired, submit it afterwards with
gh workflow run winget.yml -R bherbruck/solidcraft -f tag=v<version>.
release.yml's python job builds the Python client's one wheel (python/,
python-api.md), py3-none-any with no binary, and the CLI archives the client
downloads on first use, with packaging/python/wheels.sh. Every desktop package carries the
launcher as solidcraft-cli (one engine binary per package), so the package jobs write the real CLI
alone. On Windows the launcher starts solidcraft.exe --cli, which delay-loads opengl32.dll, so it
runs on Server Core too; the real CLI is signed with the other binaries as solidcraft-cli-full.exe
and zipped alone as solidcraft-cli.exe.
| Package job | CLI archive |
|---|---|
packaging/linux/package.sh |
solidcraft-cli-<version>-linux-<arch>.tar.gz |
packaging/freebsd/package.sh |
solidcraft-cli-<version>-freebsd-x86_64.tar.gz |
packaging/windows/package.ps1 |
solidcraft-cli-<version>-windows-<arch>.zip |
| the macOS job | solidcraft-cli-<version>-macos-universal.zip, as it is |
wheels.sh copies the Linux, FreeBSD and Windows archives and generates the bindings from the
Linux x86_64 one.
The client finds them by these names in the release v<version> and checks each against
SHA256SUMS.txt, so renaming one breaks the download for that platform. The job installs the
wheel into a clean environment, lets it download the Linux x86_64 archive from a file:// copy of
these files and runs the client's tests against it. It then uploads everything as
release-python, so the files are attached to the draft and listed in SHA256SUMS.txt like every
other asset. Wheel versions follow PEP 440: 0.52.0, 0.52.0rc1, and
0.52.0.dev<date><run><attempt> for a nightly.
pypi.yml uploads the release's wheel with PyPI trusted publishing, so no token is stored.
Publishing a pre-release sends its wheels to TestPyPI only. The release reaches PyPI when it becomes
a full release: flipping the pre-release to a release (or publishing one as a release) uploads its
wheels to PyPI with no manual run, and the flip doesn't upload to TestPyPI again. A pre-release
never goes to PyPI. Like winget.yml, an event made with GITHUB_TOKEN (every nightly) doesn't
trigger it, so flip the release as yourself;
to upload one by hand, run gh workflow run pypi.yml -R tangency-labs/solidcraft --ref v<version> -f tag=v<version>
(from the tag: the environments deploy from v* tags only, step 2).
A release with no wheels uploads nothing. PyPI refuses to replace a file it already has, so a
version is uploaded once; the upload skips files PyPI already has, so running it again after a
partial upload sends only the missing ones.
The workflow does nothing until the owner turns it on, once:
- Create the
solidcraftproject's trusted publisher on https://pypi.org/manage/account/publishing/ (a "pending publisher" before the first upload): ownertangency-labs, repositorysolidcraft, workflowpypi.yml, environmentpypi. Do the same on https://test.pypi.org with environmenttestpypi. - Create the repository environments
pypiandtestpypi(Settings > Environments), and under each one's "Deployment branches and tags" choose "Selected branches and tags" with the tag rulev*only. PyPI trusts the workflow file name and the environment, not the ref it ran from, andworkflow_dispatchruns from any ref: without the rule, anyone who can push a branch could dispatch a changedpypi.ymlfrom it and publish under the project's name. A release event runs from its tag, so releases are unaffected. Requiring a reviewer onpypiadds a manual approval before each upload. - Set the repository variable:
gh variable set PYTHON_PUBLISH -R tangency-labs/solidcraft --body true.
A platform wheel holds the whole solidcraft-cli. PyPI's default limit is 100 MB per file, and the
universal macOS binary may come close to it: the python job's log lists every wheel's size. If one
is over the limit, ask PyPI for a larger limit for the project
(https://github.com/pypi/support), and upload the wheels again with pypi.yml once it is granted.
packaging/macos/package.sh signs with the hardened runtime and notarizes when the release
workflow has these repository secrets; without them (forks, dry runs) it keeps the ad-hoc
signature and the job summary says so:
| Secret | Content |
|---|---|
APPLE_CERTIFICATE_P12 |
base64 of the Developer ID Application certificate and key, exported as .p12 |
APPLE_CERTIFICATE_PASSWORD |
password of that .p12 |
APPLE_API_KEY_P8 |
text of the App Store Connect API key (AuthKey_<id>.p8) |
APPLE_API_KEY_ID |
the key's ID |
APPLE_API_ISSUER |
the issuer ID (App Store Connect > Users and Access > Integrations) |
packaging/macos/signing.sh --setup imports the certificate into a temporary keychain after the
build, and --cleanup removes it at the end of the job.
The app is signed with packaging/macos/entitlements.plist. Its
com.apple.security.cs.disable-library-validation entitlement lets the hardened runtime load
3Dconnexion's 3DconnexionClient.framework (crates/threedx-client/src/macos.rs); without it
the 3D mouse silently stops working. Test a notarized build with a real 3D mouse before
publishing. The script notarizes the app (a zip of it) and staples it before the .dmg is made,
so a copy dragged to /Applications opens offline. It then notarizes and staples the .dmg, and
notarizes the CLI .zip (a zip can't be stapled). stapler staple is retried, because it can
fail with error 65 for a while after Apple accepts a submission. The checks are stapler validate
and spctl on the .dmg, and spctl --assess on the mounted app. To try it
locally, pass --sign and set MACOS_SIGN_IDENTITY and the APPLE_API_KEY_PATH, APPLE_API_KEY_ID,
APPLE_API_ISSUER variables and run the script.
The certificate expires in November 2027. To renew it, create a new Developer ID Application
certificate in the Apple Developer account, export it with its key as a .p12, and replace
APPLE_CERTIFICATE_P12 and APPLE_CERTIFICATE_PASSWORD. Releases built before the expiry stay
valid, because the signature carries a secure timestamp.
Signing currently uses a maintainer's personal Developer ID, so downloads show that person's
name, not an organisation's. Moving to an organisation account means replacing the certificate
and the API key secrets (APPLE_API_KEY_P8, APPLE_API_KEY_ID, APPLE_API_ISSUER).
The Mac App Store flavour (issue #26091) is built by .github/workflows/mas-build.yml, by hand
only (gh workflow run mas-build.yml --ref main), never on a push or a release.
packaging/macos/mas.sh builds the app with the mas feature (no updater), signs it sandboxed with
packaging/macos/mas-entitlements.plist (the bundled CLI with mas-helper-entitlements.plist),
embeds the provisioning profiles and wraps it in an installer package with productbuild. The
upload input validates the package and uploads it to App Store Connect (TestFlight); the adhoc
input builds an ad-hoc signed sandboxed app to try on a Mac without the store certificates. The DMG
is not affected.
| Secret | Content |
|---|---|
MAS_APP_CERT_PEM |
the Mac App Distribution certificate and its private key, as PEM text |
MAS_INSTALLER_CERT_PEM |
the Mac Installer Distribution certificate and its private key, as PEM text |
MAS_API_KEY_ID |
an App Store Connect API key with the App Manager role |
MAS_API_KEY_P8 |
the text of that key's AuthKey_<id>.p8 |
APPLE_API_ISSUER and APPLE_TEAM_ID are shared with the DMG's signing. Without the four secrets
the workflow skips and says so. packaging/macos/mas-signing.sh --setup downloads the active Mac
App Store provisioning profiles of io.tangencylabs.solidcraft and its two Quick Look extensions
through the API, so they never go into a secret. Every upload gets the run number as
CFBundleVersion, which App Store Connect requires to grow.
When the SIGNPATH_API_TOKEN secret (the API token of the SignPath CI user) exists, the release
workflow's Windows jobs Authenticode-sign through SignPath Foundation
(organization fa603ff4-c702-404b-8588-a524371c7a4e, project solidcraft). Each architecture
sends two signing requests: solidcraft.exe, solidcraft-cli.exe (the launcher) and
solidcraft-cli-full.exe (the real CLI) first, so the MSI, the portable zip, the plain .exe and
the CLI zip are made from signed binaries, then the MSI. Each
request uploads the files as a workflow artifact, SignPath fetches and signs it, and the job checks
that every file came back signed. Without the secret (forks) the jobs build unsigned as before.
- Policy:
test-signing(a self-signed test certificate) unless the dispatch inputsignpath_signing_policyor the repository variableSIGNPATH_SIGNING_POLICYsays otherwise. Switch to the real certificate withgh variable set SIGNPATH_SIGNING_POLICY -b release-signing -R tangency-labs/solidcraftonce SignPath has issued it. Requests underrelease-signingwait for approval in SignPath; the workflow waits up to an hour for each. - Artifact configuration:
packaging/windows/signpath-artifact-configuration.xml. When it changes, paste the new version into the SignPath project's artifact configuration when it lands. - Test-sign without publishing:
gh workflow run release.yml -R tangency-labs/solidcraft --ref <branch> -f draft=false, then check the Windows jobs' summaries and therelease-assetsartifact. - SignPath only signs runs whose jobs all ran on GitHub-hosted runners. Every release job now
runs on Blacksmith, so SignPath stays off (
WINDOWS_SIGNING=off) until Azure Artifact Signing replaces it.
macOS users install with brew install --cask tangency-labs/tap/solidcraft from the tap repository
tangency-labs/homebrew-tap (Casks/solidcraft.rb).
Homebrew's own cask repository only takes signed and notarized apps, so the tap stays until the
macOS signing work lands.
After publishing a stable release, bump the cask: set version and the sha256 of
solidcraft-<version>-macos-universal.dmg (the line for that file in the release's
SHA256SUMS.txt), run brew style Casks/solidcraft.rb, and push to the tap's main. The cask's
livecheck follows the latest GitHub release, so brew livecheck --cask tangency-labs/tap/solidcraft
shows when the tap is behind. Skip prereleases and nightlies.
The app's Update now (docs/book/src/guide/updates.md) only installs a package whose SHA-256
matches the release's SHA256SUMS.txt, fetched over HTTPS. That protects against corrupted and
tampered downloads in transit, but not against someone who can upload release assets. Signing
the checksum list closes that gap: once PUBLIC_KEY in crates/ui-egui/src/update/install.rs
is set, the app also requires SHA256SUMS.txt.minisig, a minisign
signature by that key whose trusted comment names the release (SolidCraft v<version>), and
refuses to update in place otherwise. The release workflow signs the list when the
UPDATE_SIGNING_KEY secret exists, and fails when the app expects signatures but the secret is
missing.
To turn it on once (owner):
-
On a trusted machine with minisign (
sudo apt install minisign,brew install minisignorwinget install minisign), make a key pair without a password (the workflow can't type one):minisign -G -W -p solidcraft-update.pub -s solidcraft-update.key
-
Store the secret key as the repository secret and keep an offline backup of it (a lost key means a new key and an app release that carries it; a leaked key means the same, quickly):
gh secret set UPDATE_SIGNING_KEY -R bherbruck/solidcraft < solidcraft-update.key
-
Put the public key (the second line of
solidcraft-update.pub, starting withRW) intocrates/ui-egui/src/update/install.rs:pub const PUBLIC_KEY: Option<&str> = Some("RW…");
and land that through a PR. Builds from then on refuse unsigned updates; releases built from then on carry
SHA256SUMS.txt.minisig. -
Delete
solidcraft-update.keyfrom the machine once the backup is safe.
Older builds without the key keep updating with the SHA-256 check alone.
The release branch is advanced only for intentional release batches. Restrict its writers to
maintainers/release agents through repository rules if required by the owner's policy. The
workflow needs contents: write only in its draft-creation job. It does not push commits,
calculate versions, or require a semantic-release bot to bypass main protections.
This workflow replaces the every-push-to-main semantic-release proposal in PR #38; do not merge that automation alongside this release model without redesigning its triggers.