Files
byre/mac/Package.swift
T

45 lines
1.9 KiB
Swift

// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "Byre",
platforms: [.macOS("27.0")],
dependencies: [
.package(url: "https://github.com/migueldeicaza/SwiftTerm", from: "1.2.0"),
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.10.0"),
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.8.0"),
.package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.1.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.10.0"),
],
targets: [
.target(
name: "ByreAPI",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
],
swiftSettings: [.unsafeFlags(["-suppress-warnings"])],
plugins: [.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")]
),
.executableTarget(
name: "Byre",
dependencies: [
"ByreAPI",
.product(name: "SwiftTerm", package: "SwiftTerm"),
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
.product(name: "Sparkle", package: "Sparkle"),
],
swiftSettings: [.strictMemorySafety()],
linkerSettings: [.unsafeFlags(["-Xlinker", "-rpath", "-Xlinker", "@executable_path/../Frameworks"])]
),
.executableTarget(
name: "byre-update",
dependencies: [
.product(name: "Sparkle", package: "Sparkle"),
],
swiftSettings: [.strictMemorySafety()],
linkerSettings: [.unsafeFlags(["-Xlinker", "-rpath", "-Xlinker", "@executable_path/../Frameworks"])]
),
]
)