Skip to content

Releases and packaging

Shin Sterneck edited this page Nov 8, 2026 · 1 revision

Continuous build

The Build workflow runs on every push to main and every pull request:

  • linux: the tests, clippy, the desktop app, the browser editor and the NetBox plugin's package
  • windows: the desktop app with Qt next to it (windeployqt), as a zip and as an installer, which is installed, tried and uninstalled again
  • arch: the prebuilt Linux download, built on Arch Linux against its Qt, and the AUR package stratagram-bin made, installed and run from it
  • netbox: the plugin's package installed into NetBox 4.5, 4.6 and 4.7 (netbox-docker), with a test site loaded and a smoke test run

Each run keeps what it made as downloads.

Releases

Pushing a tag vX.Y.Z that matches the version in Cargo.toml runs the Release workflow: the whole build with its tests, then a GitHub release with the Windows installer, the Windows zip, the Linux download and the NetBox plugin's package, with the tag's message as the release notes. The plugin also goes to PyPI, by trusted publishing from the pypi environment, without a token. Run by hand with a tag, the workflow only sends that release's plugin package to PyPI.

The version is in Cargo.toml, netbox-plugin/pyproject.toml, netbox-plugin/netbox_stratagram/__init__.py, and as a release entry in packaging/app.stratagram.Stratagram.metainfo.xml.

Windows installer

Made with Inno Setup 6 from packaging/windows/stratagram.iss, on top of the bundle the Build workflow puts together:

iscc /DVersion=1.0.0 packaging\windows\stratagram.iss   # dist\stratagram-1.0.0-windows-x64-setup.exe

The bundle carries the Qt libraries under the LGPL v3 (packaging/qt/) and the licenses of the Rust libraries built in (THIRD-PARTY-LICENSES.txt, from cargo-about).

Linux download

packaging/linux/bundle.sh makes dist/stratagram-X.Y.Z-linux-x86_64.tar.gz, laid out like /usr. The Build workflow runs it on Arch Linux.

AUR packages

  • packaging/aur/PKGBUILD: stratagram, built from a release's source
  • packaging/aur-bin/PKGBUILD: stratagram-bin, from the release's Linux download

For a new release, set pkgver, run updpkgsums, makepkg -f and makepkg --printsrcinfo > .SRCINFO, then commit PKGBUILD and .SRCINFO to the AUR repositories (ssh://aur@aur.archlinux.org/stratagram.git and stratagram-bin.git). The READMEs in both folders have the details.

Clone this wiki locally