Files
2026-03-27 21:18:48 -05:00
..
wip
2026-03-27 21:18:48 -05:00
wip
2026-03-27 21:18:48 -05:00
wip
2026-03-27 21:18:48 -05:00

Covenant-Setup Smoke Test

This example stays in HKCU and {LocalAppData} so it can be exercised without elevation.

Build single-file installers:

cargo run -- package examples/install.toml --output dist

This emits:

  • dist\covenant-setup-installer.exe

The generated installer is a single executable with the manifest and payload embedded into it. It chooses GUI or TUI mode from context, or you can force one explicitly with --headed or --headless.

Run install:

cargo run -- install examples/install.toml --json

Write the journal somewhere explicit:

cargo run -- install examples/install.toml --journal examples/journal.json

Run uninstall:

cargo run -- uninstall examples/journal.json --json

Expected effects:

  • Creates %LOCALAPPDATA%\CovenantSetupExample
  • Copies sample_app.cmd into the bin directory
  • Writes HKCU\Software\CovenantSetupExample\InstallRoot
  • Creates a desktop shortcut
  • Runs an inline PowerShell post-install command and records only the script execution in the journal