A release has macOS and Linux packages. Linux packages are built by GitHub Actions when a version tag is pushed; the macOS build is signed and notarized locally.
npm run release:mac builds a universal app (Apple Silicon and Intel), signs it with a
Developer ID Application certificate, notarizes and staples both the app and the disk image,
checks them with Gatekeeper, and writes the .dmg and SHA256SUMS.txt to release/<version>/.
Nothing below goes into the repository.
- Signing identity: the Developer ID Application certificate, named in
src-tauri/tauri.signing.json:List identities with{ "bundle": { "macOS": { "signingIdentity": "<identity name or SHA-1>" } } }security find-identity -v -p codesigning. - Provisioning profile: a Developer ID profile for
dev.soapclient.appat~/.appstoreconnect/soap-client.provisionprofile. It grants the keychain entitlement used for Touch ID. - Notarization key: an App Store Connect API key (role Developer) at
~/.appstoreconnect/AuthKey_<KEYID>.p8, with its Issuer ID in~/.appstoreconnect/issuer-id. Alternatively setAPPLE_API_KEY_PATH,APPLE_API_KEYandAPPLE_API_ISSUER. - Intel target:
rustup target add x86_64-apple-darwin.
.github/workflows/release-linux.yml runs on every pushed v* tag. It builds the .deb
(x86_64 and arm64) in an Ubuntu 22.04 container, so it runs on Ubuntu 22.04+ and Debian 12+;
repackages the x86_64 .deb for Arch Linux (soap-client-bin, see packaging/arch/PKGBUILD);
installs each package on a clean system to check its libraries resolve; and attaches the
packages and SHA256SUMS-linux.txt to the tag's release, creating it as a draft if needed.
No secrets are needed. Run it by hand from the Actions tab to get the packages as artifacts
without releasing.
To build locally for this machine's architecture, run npm run release:linux. It needs Docker
(your user in the docker group, or DOCKER="sudo docker"), and builds the Arch package too when
run on Arch Linux (this is the only way to get an aarch64 Arch package). Output goes to release/<version>/.
-
Set the same version in
package.json,src-tauri/Cargo.tomlandsrc-tauri/tauri.conf.json, and commit. -
Tag and push; the Linux packages build on GitHub and land in a draft release:
git push origin main git tag v<version> && git push origin v<version>
-
Run
npm run release:macand add the disk image to the draft:gh release upload v<version> release/<version>/*.dmg release/<version>/SHA256SUMS.txt
-
Once the Linux workflow has finished, publish:
gh release edit v<version> --draft=false --notes-file <release-notes.md>
-
Tell installed apps about the release: update
latest.jsonon thegh-pagesbranch (served athttps://yedhu.me/soap-client/latest.json). Add the version tosecurityReleasesif the release fixes a security issue; apps then show a more prominent notice that can't be skipped.{ "version": "<version>", "securityReleases": ["0.2.1", "0.2.2"] }Only publish it after the release, because the notice links to the latest release.
npm run tauri build: unsigned build. Secrets use the login keychain, and macOS may ask for Keychain access again after every rebuild.npm run build:mac: signed with the identity intauri.signing.json, without notarization.