This is a standalone Swift script that orchestrates project builds across platforms and can now generate portable .System bundles.
Usage:
./BuildSystem/pdbuild.swift <command>Commands:
interludeBuild the interlude loadersdk-validateValidate the SDK sysrootsdk-populatePopulate the SDK sysroot (requires--headersand--libs)installer-buildBuild the macOS installer app (macOS only)installer-dmgBuild the macOS installer DMG (macOS only)system-bundleBuild System components and emit a.Systembundle with metadataallRun interlude + sdk-validate (+ installer on macOS)
system-bundle emits a bundle named with:
- current git branch,
- UTC build date/time (
yyyyMMdd-HHmmss), - random codename (
Adjective-Noun)
Example:
PocketDarwin-main-20260307-120501-Aurora-Falcon.System
Inside the output bundle:
Contents/Info.plistincludes the same metadata- payload is arranged under
Contents/System/{Applications,Libraries,Services,Programs}
system-bundle supports using an iPhoneOS 2.0 sysroot for cross-compiling make-based components.
Examples:
# Explicit SDK path
./BuildSystem/pdbuild.swift system-bundle --sdk-root /path/to/iPhoneOS2.0.sdk
# Repository shortcut (Developer/SDKs/iPhoneOS2.0.sdk)
./BuildSystem/pdbuild.swift system-bundle --iphoneos2-sdk
# Custom output directory
./BuildSystem/pdbuild.swift system-bundle --iphoneos2-sdk --output-dir build/releases