bugfixes, better MusicXML support and 1.1.0
This commit is contained in:
@@ -116,11 +116,24 @@ struct LyrebirdCLIMain {
|
||||
} else {
|
||||
resolvedPath = nil
|
||||
}
|
||||
// Report which Lyrebird dependency the generated Package.swift will pin.
|
||||
let effectivePath: String? = resolvedPath ?? ProjectScaffolder.defaultLyrebirdCheckoutPath
|
||||
if let path: String = effectivePath {
|
||||
print("Lyrebird dependency: local checkout at \(path)")
|
||||
} else {
|
||||
fputs("""
|
||||
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 {
|
||||
try ProjectScaffolder.scaffold(
|
||||
name: name,
|
||||
template: template,
|
||||
lyrebirdPath: resolvedPath
|
||||
lyrebirdPath: effectivePath
|
||||
)
|
||||
print("Created \(name)/")
|
||||
} catch ProjectScaffolder.Error.projectExists(let n) {
|
||||
@@ -182,7 +195,7 @@ struct LyrebirdCLIMain {
|
||||
|
||||
Commands:
|
||||
new <name> [--template <t>] Scaffold a new Lyrebird Swift Package
|
||||
Templates: basic (default), demo, ui-demo, nrt
|
||||
Templates: basic (default), demo, ui-demo, nrt, score
|
||||
run [--release] Build and run the current project
|
||||
export <name> [--to p] Export a Synthesizer template to a .swift file
|
||||
install-templates [--force] Install Xcode file templates (Generator,
|
||||
|
||||
Reference in New Issue
Block a user