Generate licenses from SwiftPM libraries.
.binaryTarget(
name: "LicenseGen",
url: "https://github.com/swiftty/LicenseGen/releases/download/0.0.12/LicenseGen.artifactbundle.5.7.zip",
checksum: "693f3d24f6bf9483d133d473b1e7f398b0cd1a263e07c79dfef44b97233ed0a1"
),
.plugin(
name: "LicenseGenPlugin",
capability: .command(
intent: .custom(
verb: "licensegen",
description: "generate licenses to Settings.bundle."
)
),
dependencies: [
"LicenseGen"
]
),
swift package plugin --allow-writing-to-directory . licensegen \
--settings-bundle \
--settings-bundle-prefix ${bundle prefix key} \
--output-path ${path to Settings.bundle} \
--package-paths ${path to Package.swift directory}
LicenseGen is available under the MIT license, and uses source code from open source projects. See the LICENSE file for more info.