Add cross-platform installer subproject and release CI - #3
Merged
Conversation
The README referenced VTTI-CSM/CargoNetSim, but the canonical mirror lives under AhmedAredah/CargoNetSim now. Update the inline link to match the active repo.
Adds installer/ subdirectory containing:
* CMake CPack configuration with platform-specific generator selection
(DEB+RPM+TGZ on Linux, NSIS+ZIP on Windows, DragNDrop+TGZ on macOS,
IFW everywhere) and component split (Runtime required, Service
optional).
* Qt Installer Framework wiring through CPackIFW with branded wizard
(icon, banner, watermark) and home-directory default install path.
* Runtime bundling helpers per platform: linuxdeploy/patchelf on Linux
(with manual Qt6+ICU copy fallback and per-library RPATH patching so
transitive Qt deps resolve), windeployqt on Windows, macdeployqt plus
install_name_tool on macOS.
* Hardened systemd unit, launchd plist, and PowerShell service helpers
shipped under share/terminalsim/service/ but never enabled by the
installer; operator opts in explicitly.
* Branding assets generated from the project logo (icon.{png,ico,icns},
IFW banner, IFW watermark).
Top-level CMakeLists.txt gains a BUILD_INSTALLER option that pulls in
the subproject and componentizes the install rules. The .gitignore
excludes the build_installer/ scratch directory and AGENTS.md.
Mirrors the CargoNetSim release pattern: * Triggers on v* tags (and workflow_dispatch). * Checks out the private AhmedAredah/container dependency at v0.2.0 using a CONTAINER_REPO_TOKEN secret, fails fast if the secret is missing. * Installs system Qt6 via apt and Qt Installer Framework via aqtinstall in an isolated Python venv. * Builds Container, configures TerminalSim with BUILD_INSTALLER=ON, and produces a .run via cpack -G IFW. * Renames the artifact to TerminalSim-<ref>-linux-x86_64.run, computes a SHA256 checksum, attaches the asset to the GitHub Release, and appends an idempotent ## Checksums section to the release notes. Windows and macOS installer jobs are intentionally deferred until signing and notarization are sorted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
installer/subproject (opt-in via-DBUILD_INSTALLER=ON) that produces native packages and a Qt Installer Framework GUI installer (.run/.exe/.app) from a single CPack invocation.terminal_simulation --helpruns from the staged install with noLD_LIBRARY_PATH.~/TerminalSimrather than/optso non-admin installs work out of the box.v*tags, fetches the private Container dependency viaCONTAINER_REPO_TOKEN, produces the.run, attaches it to the GitHub Release, and appends a SHA256 checksum table to the release notes.AhmedAredah/CargoNetSim.Layout
Required action before tagging a release
Add the Container PAT as a repo secret:
Without it the release workflow fails fast with a clear error.
Test plan
cmake -DBUILD_INSTALLER=ONconfigures cleanly with and without IFW available.cpack -G "DEB;TGZ;IFW"produces all three artifacts on Ubuntu..runproduces a working binary that loads its bundled Qt + Container + RabbitMQ libs withoutLD_LIBRARY_PATH.~/TerminalSimin the IFW wizard.v*release and verify the workflow uploads the.runto the GitHub Release with checksum.