Lyrebird 2.0.0 — Linux support

Consolidated release: the cross-platform Linux port (engine, generators, CLI,
REPL, NRT, portable DSP), live ALSA audio + ALSA MIDI + POSIX OSC + portable
WAV codec, the GTK4 GUI (LyrebirdUI on the SwiftOpenUI backend), and the Linux
live-coding scratchpad (LiveCompile). Apple platforms unchanged; all additive.
See RELEASES.md and LINUX_README.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-10 21:09:11 -07:00
parent 77580ee98e
commit b6fdee8bfc
293 changed files with 16800 additions and 775 deletions
+23 -23
View File
@@ -47,18 +47,18 @@ struct LyrebirdCLIMain {
print("Open Xcode → File → New → File from Template…")
print("→ scroll to the 'Lyrebird' section.")
} catch TemplateInstaller.Error.destinationExists(let path) {
fputs("error: '\(path)' already exists. Pass --force to replace it.\n", stderr)
printError("error: '\(path)' already exists. Pass --force to replace it.\n")
exit(1)
} catch TemplateInstaller.Error.bundleMissingTemplates(let path) {
fputs("error: bundled templates not found at \(path).\n", stderr)
fputs(" This usually means the lyrebird binary was built without\n", stderr)
fputs(" its resource bundle. Rebuild with `swift build`.\n", stderr)
printError("error: bundled templates not found at \(path).\n")
printError(" This usually means the lyrebird binary was built without\n")
printError(" its resource bundle. Rebuild with `swift build`.\n")
exit(1)
} catch TemplateInstaller.Error.fileSystemError(let path, let reason) {
fputs("error: could not write '\(path)': \(reason)\n", stderr)
printError("error: could not write '\(path)': \(reason)\n")
exit(1)
} catch {
fputs("error: \(error)\n", stderr)
printError("error: \(error)\n")
exit(1)
}
}
@@ -74,10 +74,10 @@ struct LyrebirdCLIMain {
print(" \(TemplateInstaller.destinationURL.path)")
}
} catch TemplateInstaller.Error.fileSystemError(let path, let reason) {
fputs("error: could not remove '\(path)': \(reason)\n", stderr)
printError("error: could not remove '\(path)': \(reason)\n")
exit(1)
} catch {
fputs("error: \(error)\n", stderr)
printError("error: \(error)\n")
exit(1)
}
}
@@ -92,13 +92,13 @@ struct LyrebirdCLIMain {
do {
try REPLLauncher.launch()
} catch CLIError.swiftNotFound {
fputs("error: swift not found. Install Xcode or a Swift toolchain.\n", stderr)
printError("error: swift not found. Install Xcode or a Swift toolchain.\n")
exit(1)
} catch CLIError.buildFailed(let code) {
fputs("error: swift build failed (exit code \(code)). REPL not started.\n", stderr)
printError("error: swift build failed (exit code \(code)). REPL not started.\n")
exit(code)
} catch {
fputs("error: \(error)\n", stderr)
printError("error: \(error)\n")
exit(1)
}
}
@@ -121,13 +121,13 @@ struct LyrebirdCLIMain {
if let path: String = effectivePath {
print("Lyrebird dependency: local checkout at \(path)")
} else {
fputs("""
printError("""
warning: no local Lyrebird checkout found; pinning published \
\(ProjectScaffolder.lyrebirdPackageURL)@\(ProjectScaffolder.lyrebirdMinimumVersion). \
The generated template may use API newer than that release — if it \
fails to build, re-run with --lyrebird-path <checkout>.
""", stderr)
""")
}
do {
@@ -138,16 +138,16 @@ struct LyrebirdCLIMain {
)
print("Created \(name)/")
} catch ProjectScaffolder.Error.projectExists(let n) {
fputs("error: directory '\(n)' already exists.\n", stderr)
printError("error: directory '\(n)' already exists.\n")
exit(1)
} catch ProjectScaffolder.Error.invalidName(let n) {
fputs("error: '\(n)' is not a valid Swift module name.\n", stderr)
printError("error: '\(n)' is not a valid Swift module name.\n")
exit(1)
} catch ProjectScaffolder.Error.fileSystemError(let path, let reason) {
fputs("error: could not create '\(path)': \(reason)\n", stderr)
printError("error: could not create '\(path)': \(reason)\n")
exit(1)
} catch {
fputs("error: \(error)\n", stderr)
printError("error: \(error)\n")
exit(1)
}
}
@@ -156,12 +156,12 @@ struct LyrebirdCLIMain {
do {
try ProjectRunner.run(release: release)
} catch ProjectRunner.Error.swiftNotFound {
fputs("error: swift not found. Install Xcode or a Swift toolchain.\n", stderr)
printError("error: swift not found. Install Xcode or a Swift toolchain.\n")
exit(1)
} catch ProjectRunner.Error.buildFailed(let code) {
exit(code)
} catch {
fputs("error: \(error)\n", stderr)
printError("error: \(error)\n")
exit(1)
}
}
@@ -176,16 +176,16 @@ struct LyrebirdCLIMain {
let dest: String = path ?? SynthExporter.defaultOutputPath(for: name)
print("Exported \(dest)")
} catch SynthExporter.Error.invalidName(let n) {
fputs("error: '\(n)' is not a valid Swift identifier.\n", stderr)
printError("error: '\(n)' is not a valid Swift identifier.\n")
exit(1)
} catch SynthExporter.Error.fileExists(let p) {
fputs("error: '\(p)' already exists. Pass --overwrite to replace it.\n", stderr)
printError("error: '\(p)' already exists. Pass --overwrite to replace it.\n")
exit(1)
} catch SynthExporter.Error.fileSystemError(let p, let reason) {
fputs("error: could not write '\(p)': \(reason)\n", stderr)
printError("error: could not write '\(p)': \(reason)\n")
exit(1)
} catch {
fputs("error: \(error)\n", stderr)
printError("error: \(error)\n")
exit(1)
}
}