Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
59 lines (56 loc) · 2.1 KB
/
Copy pathPackage.swift
File metadata and controls
59 lines (56 loc) · 2.1 KB
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
// swift-tools-version:6.3
private import PackageDescription
private let swiftSettings = [
SwiftSetting
.enableUpcomingFeature("ExistentialAny"), // swiftformat:disable:this indent
.enableUpcomingFeature("ImmutableWeakCaptures"),
.enableUpcomingFeature("InferIsolatedConformances"),
.enableUpcomingFeature("InternalImportsByDefault"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.strictMemorySafety(),
.treatAllWarnings(as: .error),
]
_ = Package(
name: "mas",
platforms: [.macOS(.v13)],
products: [.executable(name: "mas", targets: ["mas"])],
dependencies: [
.package(url: "https://github.com/KittyMac/Sextant", from: "0.4.41"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.8.2"),
.package(url: "https://github.com/apple/swift-atomics", from: "1.3.1"),
.package(url: "https://github.com/apple/swift-collections", from: "1.6.0"),
.package(url: "https://github.com/attaswift/BigInt", from: "6.0.0"),
.package(url: "https://github.com/rarestype/swift-json", from: "3.5.0"),
.package(url: "https://github.com/scinfu/SwiftSoup", from: "2.13.7"),
.package(url: "https://github.com/swiftlang/swift-subprocess", from: "0.5.0"),
],
targets: [
.plugin(name: "MASBuildToolPlugin", capability: .buildTool()),
.target(name: "PrivateFrameworks"),
.executableTarget(
name: "mas",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Atomics", package: "swift-atomics"),
.product(name: "JSON", package: "swift-json"),
.product(name: "OrderedCollections", package: "swift-collections"),
.product(name: "Subprocess", package: "swift-subprocess"),
"BigInt",
"PrivateFrameworks",
"Sextant",
"SwiftSoup",
],
swiftSettings: swiftSettings,
linkerSettings: [.unsafeFlags(["-F", "/System/Library/PrivateFrameworks"])],
plugins: [.plugin(name: "MASBuildToolPlugin")],
),
.testTarget(
name: "MASTests",
dependencies: ["mas"],
resources: [.process("Resources")],
swiftSettings: swiftSettings,
),
],
swiftLanguageModes: [.v6],
)