test harness: offscreen panel snapshots via SHOTDECK_SNAPSHOT_DIR

This commit is contained in:
2026-09-01 13:01:45 +04:00
parent 79fa9ee1da
commit 3b269102a0
2 changed files with 298 additions and 0 deletions
+3
View File
@@ -4,6 +4,9 @@ import ShotdeckCore
// SwiftPM treats a file named main.swift as top-level code, which forbids `@main`.
// App.main() is the equivalent entry point.
if ProcessInfo.processInfo.environment["SHOTDECK_SNAPSHOT_DIR"] != nil {
MainActor.assumeIsolated { PanelSnapshot.runIfRequested() }
}
ShotdeckApp.main()
struct ShotdeckApp: App {