-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
77 lines (67 loc) · 1.96 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
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "ReleaseTools",
platforms: [
.macOS(.v13)
],
products: [
.executable(name: "rt", targets: ["ReleaseTools"]),
.library(name: "Resources", targets: ["Resources"]),
.plugin(name: "rt-plugin", targets: ["ReleaseToolsPlugin"]),
],
dependencies: [
.package(url: "https://github.com/elegantchaos/Coercion.git", from: "1.1.2"),
.package(url: "https://github.com/elegantchaos/Files.git", from: "1.2.0"),
.package(url: "https://github.com/elegantchaos/Logger.git", branch: "v2-wip"),
.package(url: "https://github.com/elegantchaos/Runner.git", from: "2.1.0"),
.package(url: "https://github.com/elegantchaos/ChaosByteStreams", from: "1.0.0"),
.package(url: "https://github.com/elegantchaos/Versionator.git", from: "2.0.3"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
],
targets: [
.executableTarget(
name: "ReleaseTools",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "ChaosByteStreams", package: "ChaosByteStreams"),
"Coercion",
"Files",
"Logger",
"Runner",
"Resources",
],
plugins: [
.plugin(name: "VersionatorPlugin", package: "Versionator")
]
),
.target(
name: "Resources",
dependencies: [
"Files"
],
resources: [
.copy("Scripts")
]
),
.plugin(
name: "ReleaseToolsPlugin",
capability: .command(
intent: .custom(
verb: "rt",
description: "Manages archiving and uploading releases."
),
permissions: [
.writeToPackageDirectory(reason: "Builds and archives releases.")
]
),
dependencies: [
"ReleaseTools"
]
),
.testTarget(
name: "ReleaseToolsTests",
dependencies: ["ReleaseTools"]
),
]
)