Working on Rundown
Make commands
Section titled “Make commands”The Makefile at the root wraps the common tasks; make lists them all.
| Command | Does |
|---|---|
make mac, make ios, make ios-sim |
Build the Mac app, the iPhone app for devices, or for the Simulator, into build/. CONFIG=Release for release builds, SIGN=0 to skip signing. |
make ipa |
Archive the iPhone app and export a development-signed build/Rundown.ipa. |
make run-mac |
Build and open the Mac app. |
make run-ios |
Build the iPhone app, boot the Simulator (SIMULATOR="iPhone 17 Pro" by default), install and launch it. |
make test, test-app, test-server, test-actions, test-all |
The package’s tests, the app tests on the Simulator, the server’s tests, every example’s fixtures, or all of them. |
make action-run ACTION=…, make action-test ACTION=… |
Run a script once, or play its fixtures on every save. |
make docs, docs-build, docs-preview |
The website with hot reload, its static build, or the build served as deployed. |
make server, make server-pair |
The companion server on :8080 with a development key, and a pairing code for it. |
make strings |
Add new strings to the string catalogs. |
make clean |
Remove build/, Xcode’s intermediate files and the built website. |
Repository layout
Section titled “Repository layout”| Path | Contents |
|---|---|
Rundown.xcodeproj, App/, AppTests/ |
The iPhone app (SwiftUI, iOS 26+) and its tests. The Mac app compiles App/ too. |
Mac/ |
What only the Mac app has: its window, menu commands, menu bar item, Settings window, schedule, open at login and the chosen Actions folder. |
Widgets/, Shared/ |
The widget extension (built for iOS and macOS), and the code it shares with the apps: the item entity for widgets and Shortcuts. |
Watch/, WatchWidgets/ |
The Apple Watch app and its complications; they show the cards the iPhone sends and never run scripts. |
Packages/RundownKit |
The Swift package with nearly all the logic: RundownModel (contract types and validation), ActionRuntime (the JavaScriptCore engine and run pipeline), RundownData (SwiftData store, Keychain, scheduling, run coordinator), RundownUI (the card renderer) and rundown-cli. |
sdk/ |
rundown.d.ts (typings for action authors) and prelude.js (the runtime prelude every host evaluates). Both are symlinks into the package, which bundles them. |
actions/examples/ |
The bundled actions, each with a .fixtures.json. |
server/ |
The companion server (Node 24, no dependencies). |
conformance/ |
Cases both runtimes must pass. |
Config/ |
Entitlements and Info.plist additions for every target. |
Website/ |
This site (Astro and Starlight). |
PLAN.md |
The design, the decisions and the milestones. |
Makefile |
The commands above. |
# Everything (app and package tests) on a simulatorxcodebuild test -project Rundown.xcodeproj -scheme Rundown -destination 'platform=iOS Simulator,name=iPhone 17 Pro'
# The package's tests on macOS (JavaScriptCore is available there too)swift test --package-path Packages/RundownKit
# The server's tests, including the conformance cases and every example on Nodecd server && npm test
# Check, run and test action scripts with the app's enginescripts/rundown-cli test actions/examples/stock-threshold.jsConformance cases
Section titled “Conformance cases”The same action must behave the same in the app (JavaScriptCore, Swift host) and on the server
(Node, TypeScript host). Each case in conformance/cases/ is a script, recorded I/O and the expected
results, and both hosts play every case:
swift test --package-path Packages/RundownKit --filter ConformanceTestscd server && node --test test/conformance.test.tsA case is a fixture suite with a script (text, or an array of
lines). Instead of runs, a case can expect the script not to load:
"loadError": { "kind": "script" | "invalidMeta", "name", "message", "line", "contains": [] }.
Add a case when you change the runtime, the prelude or the contract, or when the hosts behave differently. Keep expectations to what the contract promises: engines word their own errors differently, so only errors from the prelude or the hosts should be matched exactly.
Any change to the contract updates the reference, rundown.d.ts and the
examples together.
Strings
Section titled “Strings”After adding or changing user-facing text, run scripts/sync-strings. It builds the iPhone and Mac
apps and adds new strings to every string catalog, the way Xcode does when building in the IDE
(xcodebuild doesn’t).
Simulator tips
Section titled “Simulator tips”-
Actions folder: in the Simulator it’s a folder on your Mac; Library › Actions Folder shows the path.
-
Import from a link: serve the examples locally (
python3 -m http.server 8765 --directory actions/examples) and importhttp://localhost:8765/http-uptime.js, or openrundown://import?url=http%3A%2F%2Flocalhost%3A8765%2Fhttp-uptime.jswithxcrun simctl openurl booted …. -
Server: run it locally and pair with
http://localhost:8080.scripts/simulator-push alert <item id>delivers a push the way the server would send it. -
Background wakes: the Simulator can’t schedule them. Debug builds have Simulate a Background Wake in Diagnostics. On a device, pause in the debugger and trigger a real one:
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"de.alhaidari.rundown.refresh"] -
Watch: run the
Rundownscheme on an iPhone simulator with a paired watch, then theRundownWatchscheme on that watch.
This website
Section titled “This website”cd Websitenpm ci # Node 24 (see .nvmrc)npm run dev # hot-reloading servernpm run build # static site in Website/distPages live in Website/src/content/docs/docs/; add new ones to the sidebar in
Website/astro.config.mjs. Coolify builds the site from Website/ and serves it at
rundown.alhai.de on every push to main that touches it.