2024-10-01 18:05:41 +00:00
|
|
|
// swift-tools-version:5.6.1
|
2021-04-26 23:44:17 +00:00
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "mas",
|
|
|
|
platforms: [
|
2021-05-08 20:26:25 +00:00
|
|
|
.macOS(.v10_11)
|
2021-04-26 23:44:17 +00:00
|
|
|
],
|
|
|
|
products: [
|
|
|
|
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
|
|
|
.executable(
|
|
|
|
name: "mas",
|
|
|
|
targets: ["mas"]
|
2024-10-01 18:05:41 +00:00
|
|
|
)
|
2021-04-26 23:44:17 +00:00
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
// Dependencies declare other packages that this package depends on.
|
2024-10-02 10:24:02 +00:00
|
|
|
.package(url: "https://github.com/Quick/Nimble.git", from: "13.6.0"),
|
|
|
|
.package(url: "https://github.com/Quick/Quick.git", from: "7.6.2"),
|
2024-10-01 22:55:04 +00:00
|
|
|
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
|
|
|
|
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.22.1"),
|
|
|
|
.package(url: "https://github.com/mxcl/Version.git", from: "2.1.0"),
|
2021-05-13 00:15:29 +00:00
|
|
|
.package(url: "https://github.com/sharplet/Regex.git", from: "2.1.1"),
|
2021-04-26 23:44:17 +00:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
|
|
|
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
2024-10-01 18:05:41 +00:00
|
|
|
.executableTarget(
|
2021-04-26 23:44:17 +00:00
|
|
|
name: "mas",
|
2021-05-12 04:45:24 +00:00
|
|
|
dependencies: [
|
2024-10-01 22:55:04 +00:00
|
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
2021-05-12 04:45:24 +00:00
|
|
|
"PromiseKit",
|
2021-05-13 00:15:29 +00:00
|
|
|
"Regex",
|
2021-05-12 04:45:24 +00:00
|
|
|
"Version",
|
|
|
|
],
|
2021-04-26 23:44:17 +00:00
|
|
|
swiftSettings: [
|
|
|
|
.unsafeFlags([
|
|
|
|
"-I", "Sources/PrivateFrameworks/CommerceKit",
|
|
|
|
"-I", "Sources/PrivateFrameworks/StoreFoundation",
|
2021-05-08 20:26:25 +00:00
|
|
|
])
|
2021-04-26 23:44:17 +00:00
|
|
|
],
|
|
|
|
linkerSettings: [
|
|
|
|
.linkedFramework("CommerceKit"),
|
|
|
|
.linkedFramework("StoreFoundation"),
|
|
|
|
.unsafeFlags(["-F", "/System/Library/PrivateFrameworks"]),
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.testTarget(
|
2024-10-01 18:05:41 +00:00
|
|
|
name: "masTests",
|
|
|
|
dependencies: ["mas", "Nimble", "Quick"],
|
2021-04-26 23:44:17 +00:00
|
|
|
resources: [.copy("JSON")],
|
|
|
|
swiftSettings: [
|
|
|
|
.unsafeFlags([
|
|
|
|
"-I", "Sources/PrivateFrameworks/CommerceKit",
|
|
|
|
"-I", "Sources/PrivateFrameworks/StoreFoundation",
|
2021-05-08 20:26:25 +00:00
|
|
|
])
|
2021-04-26 23:44:17 +00:00
|
|
|
]
|
|
|
|
),
|
|
|
|
],
|
|
|
|
swiftLanguageVersions: [.v5]
|
|
|
|
)
|