-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
Package.swift
94 lines (92 loc) · 3.59 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "LicensePlist",
products: [
.executable(name: "license-plist", targets: ["LicensePlist"]),
.library(name: "LicensePlistCore", targets: ["LicensePlistCore"]),
.plugin(name: "LicensePlistBuildTool", targets: ["LicensePlistBuildTool"]),
.plugin(name: "GenerateAcknowledgementsCommand", targets: ["GenerateAcknowledgementsCommand"]),
.plugin(name: "AddAcknowledgementsCopyScriptCommand", targets: ["AddAcknowledgementsCopyScriptCommand"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git",
from: "1.1.4"),
.package(url: "https://github.com/ishkawa/APIKit.git",
from: "5.3.0"),
.package(url: "https://github.com/Kitura/HeliumLogger.git",
from: "2.0.0"),
.package(url: "https://github.com/Kitura/swift-html-entities.git",
from: "4.0.1"),
.package(url: "https://github.com/YusukeHosonuma/SwiftParamTest",
.upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/tomlokhorst/XcodeEdit.git",
from: "2.9.0"),
.package(url: "https://github.com/jpsim/Yams.git",
from: "5.0.5")
],
targets: [
.executableTarget(
name: "LicensePlist",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"LicensePlistCore",
"HeliumLogger",
"XcodeEdit"
]
),
.target(
name: "LicensePlistCore",
dependencies: [
"APIKit",
"HeliumLogger",
.product(name: "HTMLEntities", package: "swift-html-entities"),
.product(name: "Yams", package: "Yams")
]
),
.testTarget(
name: "LicensePlistTests",
dependencies: ["LicensePlistCore", "SwiftParamTest"],
exclude: [
"Resources",
"XcodeProjects",
]
),
.plugin(
name: "LicensePlistBuildTool",
capability: .buildTool(),
dependencies: ["LicensePlistBinary"]
),
.plugin(
name: "GenerateAcknowledgementsCommand",
capability: .command(
intent: .custom(
verb: "license-plist",
description: "LicensePlist generates acknowledgements"
),
permissions: [
.writeToPackageDirectory(reason: "LicensePlist generates acknowledgements inside the project directory")
]
),
dependencies: ["LicensePlistBinary"]
),
.plugin(
name: "AddAcknowledgementsCopyScriptCommand",
capability: .command(
intent: .custom(
verb: "license-plist-add-copy-script",
description: "LicensePlist adds a copy script to build phases"
),
permissions: [
.writeToPackageDirectory(reason: "LicensePlist updates project file")
]
),
dependencies: ["LicensePlistBinary"]
),
.binaryTarget(
name: "LicensePlistBinary",
url: "https://github.com/mono0926/LicensePlist/releases/download/3.25.1/LicensePlistBinary-macos.artifactbundle.zip",
checksum: "a80181eeed49396dae5d3ce6fc339f33a510299b068fd6b4f507483db78f7f30"
)
]
)